Enable Mastodon Apps

Beschrijving

Ondanks dat Mastodon impliceert dat je deze plugin zou gebruiken om op Mastodon te engageren (wanneer je het daarvoor hebt ingeschakeld, zie hieronder), is de plugin nuttig wanneer geïnstalleerd op een eenvoudige WordPress.

Als je een Mastodon app gebruikt, voer je je eigen blog-URL in om verbinding te maken en in te loggen op je blog in de volgende schermen.

Je ziet dan alleen de berichten op je blog, wat al nuttig kan zijn in een multi-auteur omgeving (bijv. privéblogs). Je kunt die Mastodon app ook gebruiken om eenvoudige berichten te maken met een bericht + bijlage(n), wat beter geschikt kan zijn voor je gebruikssituatie dan het gebruik van de Gutenberg compatibele WordPress mobiele app.

Even without the ActivityPub or Friends plugins, Mastodon apps can be used as a local client for your WordPress posts. Favourites (likes) and bookmarks are stored locally so they can be shown again in the app and in the favourites and bookmarks views.

For generated video thumbnails, install Videopack and configure it with FFMPEG. Enable Mastodon Apps will ask Videopack to generate a thumbnail for videos uploaded through Mastodon clients, then use the video’s WordPress featured image as the Mastodon media preview_url.

Wanneer gebruikt in combinatie met de ActivityPub (om gevolgd te worden via Mastodon) en Friends (om mensen te volgen op Mastodon of via RSS) plugins, zal de Enable Mastodon Apps plugin je feed van mensen die je volgt tonen en kun je mensen volgen en ontvolgen vanuit de app.

Wees ervan bewust dat een app een bericht format zal hebben (zie de instellingen pagina). De plugin zal controleren of de Friends plugin bestaat om een redelijke standaard te vinden (status met Friends plugin, anders standaard). Wanneer je een bericht maakt met je Mastodon app, zal het bericht format dat je voor de app geselecteerd hebt, gebruikt worden.

De plugin is getest met een behoorlijk aantal Mastodon clients, waaronder:

Veel meer, zie de sectie voor apps van derden op joinmastodon.org/apps. Elke app kan zijn eigenaardigheden hebben, meld een probleem als je problemen hebt. Er is ook een kans dat de API nog niet is geïmplementeerd (zie hieronder.)

Mastodon API implementatie

De plugin implementeert de Mastodon API zoals gedocumenteerd op joinmastodon.org: de OAuth API voor inloggen (je ziet je WordPress login scherm wanneer je inlogt op je Mastodon app, het werkt ook met 2FA plugins) en de REST API voor toegang tot je gegevens.

Hier is een lijst van endpoints en hun implementatie status:

Niet genoemde endpoints zijn niet geïmplementeerd. Bijdragen welkom!

Voor endpoints die te maken hebben met interactie met gebruikers buiten je lokale netwerk heb je de ActivityPub plugin nodig. Om gebruikers te volgen heb je de Friends plugin nodig. Lokale favorieten (likes) en bladwijzers werken zonder beide plugins. Voor endpoints die met lijsten te maken hebben, heb je de Friends Roles plugin nodig.

Schermafbeeldingen

Beoordelingen

14 juli 2026 3 reacties
Good idea, but incompatible with WordPress 7.0 since the July 26, 2014 update.
13 september 2023
Thank you so much for writing this , so useful for Status updates.
Lees alle 7 beoordelingen

Bijdragers & ontwikkelaars

“Enable Mastodon Apps” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

“Enable Mastodon Apps” is vertaald in 16 localen. Dank voor de vertalers voor hun bijdragen.

Vertaal “Enable Mastodon Apps” in je eigen taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

1.6.4

  • Don’t drop media attachments that lack dimensions (#334) – should fix featured images
  • Federate what Mastodon apps actually submit (#333) – should fix mentions
  • Implement conversation read and delete handlers (#321)

1.6.3

  • Don’t make first line bold for post types that don’t support titles (#332)
  • Query every notification source separately (#331)
  • Include the featured image as a media attachment (#330)

1.6.2

  • Perform follows through the ActivityPub plugin (#328)
  • Match Mastodon’s app registration, token and account responses (#326)
  • Only validate Authorization headers on Mastodon API requests (#325)
  • Search by date when the query is a year, month or day (#322)
  • Populate status URL fields (#318)
  • Add captions for media descriptions (#315)
  • Represent local blog follows in the API (#313)
  • Add Videopack video thumbnail integration (#314)
  • Add configurable media attachment limit (#312)
  • Avoid stale block media attachment IDs (#311)
  • Fix profile image updates from Mastodon clients (#310)

1.6.1

  • Ensure account headers are always serialized (#308)
  • Allow lower-privilege users to use Mastodon apps (#307)
  • Keep EMA unread status out of public searches (#306)
  • Add configurable reaction mapping (#305)
  • Add Site Health diagnostics for Mastodon app setup (#301)
  • Fix registered apps settings link (#304)
  • Fix conversation participant handling (#302)
  • Add first line excerpt option (#300)
  • Use single-line status as post title when media is attached (#299)
  • Add debug response logging, fix announcement ID type, add notification group_key (#298)
  • Improve the CSS for the mobile view inside wp-admin (#297)

1.6.0

  • Support fetching remote/federated posts via status endpoint (#294)
  • Fix missing federation when replying to remote Fediverse posts (#291)
  • Add /api/v1/tags/:name endpoint (#293)
  • Fix notification pagination (#292)
  • Fix more incorrect filter docblock types and add missing docblocks (#296)
  • Fix incorrect return types in timeline and statuses filter documentation (#295)

1.5.1

  • Add cleanup logic for reblog mapping posts (#290)
  • Add quote and quoted_update notification types (#287)
  • Prevent login redirect plugins from breaking OAuth flow (#289)
  • Add v2/filters and v2/notifications/policy endpoint stubs (#288)

1.5.0

  • Add option to limit posts with attachments (#282)
  • Improve registered apps page (#277)
  • Ensure numeric ids on statuses in searches (#274)
  • Add the /api/v1/statuses endpoint (#276)
  • Use a Github action to extract the wp hooks (#271)
  • Remote type=button attribute (#268)
  • Add the editor to Mastodon posts (#266)

1.4.6

  • Fix registering rewrite rules (#261)
  • Fix missing type=button on toggle all link (#259)
  • Bring back post row actions (#260)

1.4.5

  • Flush Rewrite Rules later (#257)

1.4.4

  • Add support for internal DMs (#253)
  • Improve Debugger (#256)

1.4.3

  • Fix double creation of reply posts (#245)
  • Enable OPTIONS and api/apps endpoint even with rest_login_required (#242)
  • Convert urls to links when posting (#243)

1.4.2

  • Update search endpoints (#238)
  • Fix the EMA announcements appearing publically when debug on (#237)

1.4.1

  • Allow filtering whether the user is a member of the blog (#234)

1.4.0

  • Implement Direct Messages (#233)
  • Add following endpoint (#228)
  • Submit Post as Standard if create post format is empty (#227)
  • Fix comments context API response (#225)
  • Fix title in standard posts when HTML is submitted (#226)

1.3.0

  • Fix small errors on app page (#224)
  • Show internal CPTs if debug is turned on (#223)
  • Add setting for a default post format (#221)
  • Improve New Post Setting and explicit set a New post format (#220, #222)
  • Assign all post formats to EMA announcements (#218)

1.2.1

  • Fixed Boost, Like and Comment notifications (#216)
  • Announce Initial and Changed App Settings (#207, #214)
  • Added a Welcome message to your feed and explain the EMA plugin (#210)
  • Added missing types to notifications endpoint (#215)
  • Don’t set any post formats as default (#211)
  • Updated Mastodon API Tester (#209)
  • Added a setting to disable status updates to be added to the feed (#208)
  • Added support for the OAuth2 Out of Band flow (#206)

1.1.0

  • Add an Announcement CPT so that we can inform about the changed app settings (#204)
  • Add support for viewing bookmarks and favourites (#203)
  • Fix a wrong settings link, thanks @jeherve! (#202)
  • Fix problems with user language when authorizing (#201)

1.0.0

  • Post through Mastodon Apps to a new post type by default (#192)
  • Explain the new hide posts setting better (#198)
  • Don’t enforce parameters on non-EMA REST requests (#197)
  • Add missing CPT supports (#196)
  • Don’t show reblog mapping posts (#193)
  • Update PHPCompatibility and restrict PHPUnit (#195)
  • Add missing svn in Github Actions (#194)
  • Improve REST Authentication Error Debugging (#191)
  • Use title instead of post_content when there is no line break (#185)
  • Fix wp:image block created for attachments (#184)

0.9.9

  • Improve targeting of CORS headers (#181)
  • Fix fatal when deleting an app (#182)

0.9.8

  • Oplossing voor het beantwoorden van ontvangen reacties via de ActivityPub plugin (#176)

0.9.7

  • Opgelost: bug waarbij het aanmaken van berichttype werd genegeerd (#175)
  • Zet automatisch bericht inhoud om naar blokken, kan worden uitgeschakeld (#174)

0.9.6

  • Voegt steaming_api toe aan instance_v1, props @mediaformat (#171)
  • PATCH routes: ondersteuning field_attributes, props @mattwiebe (#167)
  • Maak token opslag taxonomieën privé, props @mattwiebe (#165)
  • Geüpdatet tester.html van upstream
  • Introduceer een nooit gebruikt label op het geregistreerde apps scherm.

0.9.5

  • Voeg een details link toe aan de apps pagina (#163)
  • Toon alle reacties van anderen als meldingen (#164)
  • Update NodeInfo endpoint door @pfefferle (#162)
  • Multisite: zorg ervoor dat user_ids alleen werken voor gebruikers van deze site door @mattwiebe (#158)
  • Verhoog phpcs regels en los ze op door @mattwiebe (#160, #155)
  • Voeg api/v1/accounts/update_credentials route toe door @mattwiebe (#157)

0.9.4

  • Toegevoegd een speciale pagina per app in de instellingen. Daar kun je instellen welke berichttypes in de app moeten worden getoond. Ook welk berichttype moet worden aangemaakt voor nieuwe berichten. (#154)
  • Opgelost: authenticatie van Jetpack zodat je WordPress.com kunt verbinden met deze plugin (#152)

0.9.3

  • Breng de upgrade code terug.

0.9.2

  • Snelle oplossing om het upgrade script uit te schakelen om fouten te voorkomen.

0.9.1

  • Sta een lege zoekopdracht toe, om in alle categorieën te zoeken (#150) props @pfefferle
  • Activeer de Link Manager niet opnieuw (#148)
  • Vermijd fouten bij het verdelen van strings (#147) props @mattwiebe
  • Voeg geen spam reacties toe aan de feed (#149)
  • Zorg ervoor dat er geen spaties in URL’s zijn (#144)
  • Oplossing voor enkele typefouten op het welkomstscherm (#143)

0.9.0

  • Volledige herschrijving, begonnen bij de Cloudfest Hackathon! Props @pfefferle, @drivingralle, @kittmedia, @obenland
  • Dus: alle ActivityPub gerelateerde taken worden afgehandeld door de ActivityPub plugin, alle vriendschapsgerelateerde taken door de Friends plugin. Zorg ervoor dat je de nieuwste versie van die plugins hebt als je dergelijke functies wilt gebruiken.
  • Herziene instellingen, een manier toegevoegd om de lokale API te testen (#138, #140)
  • Toestaan bewerken van een ingediende status (#137)
  • Verbeteringen aan bijlagen (#132, #136)
  • Oplossing OAuth rewrite pad (#130)