Linux 软件免费装

Feditoot – Embed Latest Post from Mastodon

开发者 pfennig
更新时间 2026年7月24日 19:43
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

embed shortcode social fediverse mastodon

下载

1.0.0

详情介绍:

Feditoot adds a shortcode that fetches the most recent public post from a Mastodon account and displays it using the instance's official embed script — the same output you get from Mastodon's "Get embed code" feature. This plugin is not affiliated with Mastodon. No account ID lookup required. Just use the familiar @user@instance format. Features: How it differs from other plugins:

安装:

  1. Upload the feditoot folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Add the shortcode to any post, page, or widget that supports shortcodes.
Shortcode example: [feditoot acct="@user@instance.social"]

升级注意事项:

1.0.0 Initial release.

常见问题:

What format should acct use?

Use your Mastodon handle: user@instance.domain. A leading @ is optional. Examples:

  • acct="@alice@mastodon.social"
  • acct="alice@mastodon.social"

How does caching work?

By default, the latest post URL is cached for 10 minutes. Change this with cache_minutes="30" (minimum 1 minute). Clear cache by waiting for expiry or deactivating/reactivating the plugin.

What if no posts are found?

The shortcode outputs nothing visible on the page (an HTML comment is left for debugging). This can happen if the account has no public posts, or if all posts are filtered out by exclude_replies or exclude_reblogs.

Does this work with private or followers-only posts?

No. Only public posts accessible via the instance API are embedded.

My instance does not support /api/v1/accounts/lookup

Most modern Mastodon instances support account lookup. If yours does not, this plugin cannot resolve the account. Check with your instance administrator.

Does my server need outbound HTTPS?

Yes. WordPress must be able to reach the Mastodon instance API over HTTPS.

Is this an official Mastodon plugin?

No. Feditoot is an independent WordPress plugin and is not affiliated with Mastodon.

更新日志:

1.0.0