mediadreams/md_mastodon 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mediadreams/md_mastodon

Composer 安装命令:

composer require mediadreams/md_mastodon

包简介

Show data from Mastodon social network via API.

README 文档

README

With this extension you are able to show Mastodon toots on your TYPO3 website. It will collect data via the API and display it as a Mastodon social wall.

Screenshots

Example of Mastodon social wall: Screenshot detail

Requirements

  • TYPO3 v12.4 | v13.4

Installation

  • Install the extension by using composer (composer req mediadreams/md_mastodon) or the extension manager

  • Include the static TypoScript of the extension

  • Configure the extension by setting your own Typoscript constants

  • plugin.tx_mdmastodon_api.settings.includeCss
    Include standard CSS styles for a masonry-layout if the items (toots).

Template layouts

You are able to configure template layouts in TsConfig:

tx_mdmastodon_api {
  templateLayouts {
    1 = First layout
    2 = Second layout
  }
}

Usage

Create a new entry of type Mastodon configuration

  1. Select module List
  2. Select a page where to store the record (can be any page)
  3. Click the button Create new record
  4. In the section Mastodon social networking API click Mastodon configuration

Now you are able to configure a Mastodon feed, which you want to show on the website.

Step 1-3: Screenshot detail

Step 4: Screenshot detail

Configure the feed

  • Title
    This is for internal use only. It is needed, in order to select the feed in the plugin.
  • Base Api URL
    The Mastodon base api URL, like https://mastodon.social/api/v1/. You can leave this empty, if you have configured a default URL in typoscript constant plugin.tx_mdmastodon_api.settings.apiUrl.
  • Api token
    Mastodon API token. You can leave this empty, if you have configured a default API token in typoscript constant plugin.tx_mdmastodon_api.settings.apiToken.
    ATTENTION: Make sure, that you have given the appropriate rights to your Mastodon application, when generating the API key.
  • Api method
    Select the Mastodon API method.
  • Only media
    Show only statuses with media attached.
  • Update frequency
    Decide how often the feed should be updated (number in seconds).
  • Import date (read only)
    Date of last update.
  • Data (read only)
    JSON response of the API call.

Create scheduler task

  • Select module Scheduler
  • Click the button Add task
  • In field Class select Execute console commands
  • Choose a Frequency. Note: This can be set for example to 5 minutes and the respective Mastodon feed will be updated, as set in the configuration of the feed (field Update frequency).
  • In field Schedulable Command. Save and reopen to define command arguments choose mdmastodon:import
  • Save

Create Plugin to show entries

  • Select module Page
  • Select the page where to show the Mastodon feed
  • Create new content element of type General Plugin
  • Switch to tab Plugin and select Mastodon
  • In field Mastodon configuration find the configuration, which you have created in the step before
  • Decide, how many entries to show be setting a value in field Limit
  • Save

ATTENTION

Be aware, that the feed needs to be imported by running the scheduler task before it can be displayed by the plugin!

Bugs and Known Issues

If you find a bug, it would be nice if you add an issue on Github.

THANKS

Thanks a lot to all who make this outstanding TYPO3 project possible!

The TYPO3 project - inspiring people to share!

mediadreams/md_mastodon 适用场景与选型建议

mediadreams/md_mastodon 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 375 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 07 月 06 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「extension」 「social」 「typo3」 「social network」 「TYPO3 CMS」 「mastodon」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mediadreams/md_mastodon 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mediadreams/md_mastodon 我们能提供哪些服务?
定制开发 / 二次开发

基于 mediadreams/md_mastodon 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 375
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 33
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2023-07-06