Support for federated events in Yonder
Yonder now implements FEP-8a8e and supports federated events
The post above is a real event, authored from Yonder's composer and rendered from the embedded status.
This article is about how it got there β and how it travels to other ActivityPub servers.
And by the way, if you are using an account on a federated network that supports FEP-8a8e events, feel free to RSVP to it, so I also have a better sense of how many people use the Fediverse from implementations that support this feature π
The problem: events in a microblogging world
Events are the piece of the social graph that the fediverse has historically handled worst. Mastodon doesn't understand them at all: Event is on the list of "converted" types in its ActivityPub code, and its status parser replaces the text of a converted object with name + summary + a link. content is discarded outright, and every structured field β start time, place, join mode, attendee list β with it.
Mobilizon was built specifically to fill that gap, and it does it well, but it's a separate platform: separate accounts, separate timelines, separate moderation, and a hard seam between "my microblogging life" and "my event life".
FEP-8a8e ("FEP for Events") is the draft specification that tries to close that seam: it defines how Event objects, locations, RSVP activities and attendee collections should be represented and exchanged over ActivityPub, so that any compliant server can author, federate and respond to events without needing a separate account on a dedicated platform.
Yonder now implements it. The work landed in the feat/events branch, merged after a fair number of interoperability bugs that only a real multiple-instance deployment could surface.
This article walks through what was built, the design decisions behind it, and the parts of the problem that turned out to be harder than they looked.
Events are statuses
The foundational decision shapes everything else: an event is a status, not a separate entity.
A Yonder event is a statuses row with object_type = 'Event' β the title lives in the status title, the description in the normal content fields β plus an events side table and child tables for locations, organizers and participations.
This mirrors how Yonder already handles polls and articles, and it buys a lot for free: replies, boosts, favourites, bookmarks, reports, timelines, search, pins and the entire moderation surface keep working on events without a single line of extra code. An event can be public, unlisted, followers-only, local-only or invitees-only, and the existing visibility machinery applies unchanged.
The FEP-8a8e metadata lives in side tables providing:
startTime/endTimewith a real IANA timezone- Event status (
scheduled,cancelled,postponed,rescheduled,moved_online) - Physical
Placelocations with structured address parts or coordinates VirtualLocations for online events (hybrid events can have both)- Categories, join mode, capacity, banner and flyer.
On the wire, the outbound object is a full FEP-8a8e Event:
namestartTime/endTimein the event's own timezonelocationas an array ofPlace/VirtualLocationcategoryjoinModeeventStatuswith its iCal companionspreviousStartTimeon reschedules- The banner as
image Linkattachments carrying the permalink and the per-event ICS feed β so even a client that can't render events natively still gets copy-link and download-calendar affordances.
One subtlety worth calling out: the JSON-LD context. The FEP's own context URL (https://w3id.org/fep/8a8e) redirects to Codeberg Pages and serves text/plain, which strict JSON-LD loaders β Friendica among them β may choke on. Yonder therefore inlines the term definitions (fep8a8e:, sc: for schema.org, mz:, ical:) into the AP context's object member, and is careful to never redefine plain ActivityStreams terms like location, Place, startTime, endTime or name, which some remote implementations resolve against their own vocabulary.
Degrading gracefully to Mastodon
Mastodon is the elephant in the room: it has no event support, no Join activity, and a peculiar rendering rule for non-Note objects β it discards content entirely and renders <h2>name</h2> + summary + a link instead (see the status parser quoted above).
Gancio, Mobilizon and the WordPress Event Bridge all emit a machine-generated summary for exactly this reason β Gancio's federation docs are explicit that it exists "for Mastodon" β and Yonder does the same: the summary is a "When: β¦ / Where: β¦ / Online: β¦" preamble plus a description excerpt, so a Mastodon user sees a useful post rather than a bare title.
That degradation path produced two of the most instructive bugs of the whole epic, both only visible in live federation:
- The summary is not a content warning. Mastodon never folds
summaryintospoiler_textβ but Akkoma does: it acceptsEventas a note-like object with no event semantics, and its Mastodon-API view renderssummaryas a content warning. Yonder's own ingest code had the same blind spot β the guard that was supposed to exclude events from the summary-as-CW fold only covered the Mastodon "converted" types (Article,Page,Audio,Video), neverEvent. The result: every remote event rendered on a Yonder instance collapsed behind an unreadable content warning containing a concatenation of when, where, title and description. A corrective migration cleared the damage on already-ingested rows. - The excerpt must be HTML, not markdown. Since Mastodon renders the summary in place of the content, the description excerpt inside the summary is what Mastodon users actually read. Injecting the raw markdown source there meant
[label](https://example.com)displayed literally. The excerpt is now taken from the status's rendered, sanitized HTML and truncated HTML-aware β entities count as one visible character,<img>tags are dropped as preview noise, and truncation closes any still-open tags after the ellipsis.
The same preamble is reused at read time in Yonder's Mastodon-compatible API, so third-party apps (Tusky, Ivory, Phanpyβ¦) that know nothing about events still render a readable post β with one exception: event-aware clients like pl-fe get the structured yonder.event block instead, so they don't render the preamble twice.
And since "Where: Massachusetts Institute of Technology" is much more useful as a link, the preamble's place lines are hyperlinks to OpenStreetMap or Google Maps (configurable per instance), mirroring what the Yonder UI does: coordinates win β an OSM pin or a lat,lon Maps query β with the structured address parts as a search-query fallback.
RSVP: one state machine, two dialects
RSVP is where FEP-8a8e gets interesting, because the fediverse doesn't have one RSVP protocol β it has at least two, and they're not compatible:
- The Mobilizon-style join dialect: a
Joinactivity targeting the event, answered by the organizer withAccept/Reject/Ignore, undone withLeave. Mobilizon's federation documentation spells out exactly this table βJoinapplies toEvent,Accept/Rejectapply toJoin, andLeavetoEventβ and notably itsInviteactivity only applies toGroupmembership, not to events. (Nicolex, mkljczk's Pleroma fork and the closest analogue to Yonder's approach, follows the same join dialect but sendsUndo{Join}to leave, so both spellings have to be accepted.) - The Friendica/Hubzilla invite dialect: the organizer sends an
Invite{object: event, to: [invitee]}, and the invitee answers withAccept/TentativeAccept/Rejecton the invite. In Friendica's ActivityPub code,Receiver.phpmaps those three activities on anEventto attend / don't-attend / maybe, andTransmitter.phpis where the outbound event and its addressing are built; there is noJoinat all. Hubzilla uses the sameInvitemodel β that's recorded in the FEP-8a8e history section rather than in any Hubzilla documentation I could find.
Yonder implements both, inbound and outbound, on top of a single state machine. The local RSVP API (POST /api/v1/yonder/events/{id}/rsvp) and the inbound ActivityPub activities drive the same machine, so there's exactly one source of truth for what pending, accepted, tentative, declined, rejected and ignored mean, how capacity is enforced under row locks, and how replays stay idempotent. Join modes map onto the dialects: free joins are instant, restricted events queue a participation request for the organizer's approval, invite events are gated on Invite activities or invitations, and external events simply redirect to an externalParticipationUrl.
The dialect selection is per-remote-event, informed by a cached nodeinfo lookup: answering an invitation on a Mobilizon-style event sends Join, answering on a Friendica-style event sends Accept on the stored invite activity.
Invitations themselves come in two flavours too. The Friendica/Hubzilla Invite{Event} path is organizer-authorized and writes an invited participation row.
And there's the Catodon mechanism, which is refreshingly primitive: invite people by direct message. A direct Note mentioning the invitees carries a yonder:inviteTo/catodon:inviteTo extension property with the event URI; inbound, any Create carrying either property writes invited rows for its local mentions β no organizer check, because anyone who can see an event may invite.
If the event hasn't federated to the receiving instance yet, the invite parks in a pending table and drains when the Event object materializes. It's fire-and-forget: no visibility change, no participation row, and the RSVP still follows the event's own protocol. The design is Catodon's own β their events federation notes describe the catodon:inviteTo direct-message invitation and the "answer in the dialect the event's server speaks" rule that Yonder's per-event dialect selection mirrors, and the implementation lives in their EventInvitationService.
Beyond the card: calendar, discovery, notifications
An event you can't find later is barely an event, so the feature ships with the surrounding machinery:
- Calendar export. Every event has an ICS feed; profiles expose an anonymous public-events feed; and there's a personalized, token-gated subscription (
/users/{u}/calendar/{token}.ics) that includes everything you organize or participate in β across visibilities β with your own RSVP encoded asATTENDEE;PARTSTAT. It works as an "add by URL" subscription in Google Calendar, Nextcloud, Outlook and Apple Calendar. The token is the authorization: only its SHA-256 hash is stored, the plaintext URL is shown once, and revocation is immediate. - Discovery. A chronological events API with category, hashtag, online, and near-me (bounding-box prefilter + great-circle distance) filters, backed by a personal
/eventspage and a public/events/discoverpage. Discovery only ever surfaces events withPublicintoβ the calendar subscription is the one deliberate exception. - Actor
upcomingEvents. Actor documents advertise an OrderedCollection of the account's nearest upcoming events (public/unlisted, capped at 200), cached and invalidated on event create/edit/delete β the same pattern asfeatured. - Notifications and reminders. Four
pleroma:*notification types (participation_request,participation_accepted,event_update,event_reminder) that pl-fe already knows how to render, plus the standard Mastodonupdatenotification for participants. A cron-configurable reminder sweep notifies accepted/tentative participants before the start time, idempotent via areminded_atstamp that reschedules clear. Participants viewing a stale remote event trigger a bounded background re-fetch, so a reschedule on the origin instance propagates without anyone manually refreshing.
The composer gets a full event builder β title, times with timezone, locations with optional address autocomplete (Nominatim or Google, opt-in per instance), categories with icons, join mode, invitees, banner and flyer β and editing follows the same rules as any status: an edit with an event payload re-syncs the side tables, so cancel, postpone and reschedule are ordinary Update activities, never Deletes.
The honest part: what's still unverified
FEP-8a8e is a draft, and the Fediverse is not a test suite. The implementation is covered by unit tests, fixture-driven parser tests (real payloads captured from live Mobilizon, Gancio, WordPress Event Bridge and Nicolex instances during research) and containerized e2e tests β including the two-instance RSVP round trip. But the live interop matrix against Mastodon, Mobilizon, Gancio, Friendica, Akkoma and the rest is only now being filled in on a deployed instance, and I expect a few more of the "works in fixtures, breaks in production" variety before the rows are all green. Mobilizon in particular is known to reject payloads it doesn't fully understand, so the exact shape of Yonder's outbound documents matters as much as their semantics.
Two known rough edges, documented rather than hidden: previousStartTime is emitted as xsd:dateTime while the FEP's example context types it as @vocab (Yonder follows the FEP text; the upstream context is expected to be corrected), and calendar ATTENDEE/ORGANIZER values use https:// actor URIs rather than mailto: cal-addresses, which RFC 5545 clients generally accept but don't all handle identically.
Non-goals for the initial release, in line with the FEP: recurrence and multi-date events, all-day events, embedded map tiles, tickets and payments, and anonymous participation.
Try it
The feature is merged into Yonder main (e46b808). If you run an instance, events are gated behind an [events] config section β enable it, and the composer grows an event button, the app menu grows an Events page, and your actor document grows an upcomingEvents collection. If you run Mobilizon, Gancio, Friendica or anything else that speaks events: follow a Yonder account, and the events should start showing up in your timelines β structured, RSVP-able, and without a content warning in sight.
Reactions
How to interact with this page
Webmentions
To interact via Webmentions, send an activity that references this URL from a platform that supports Webmentions, such as Lemmy, WordPress with Webmention plugins, or any IndieWeb-compatible site.
ActivityPub
- Follow @fabio@manganiello.blog on your ActivityPub platform (e.g. Mastodon, Misskey, Pleroma, Lemmy).
- Mention @fabio@manganiello.blog in a post to feature on the Guestbook.
- Search for this URL on your instance to find and interact with the post.
- Like, boost, quote, or reply to the post to feature your activity here.
π§ͺ Experimental support for federated events (FEP-8a8e) has now landed in #Yonder #ActivityPub