From IndieWeb
Jump to: navigation, search

ActivityPub is a decentralized social networking protocol (W3C Recommendation) briefly known as ActivityPump, based on and ActivityStreams. Conceptually they were all preceded by OStatus.



Main article: bridge#ActivityPub

ActivityPub Notifications to Webmention

Since Mastodon and other ActivityPub implementations often include Microformats on their permalinks, a shortcut for receiving comments from ActivityPub servers is to treat them as webmentions instead of doing the full Inbox processing normally required by ActivityPub.

When your ActivityPub inbox receives a notification:

  • If type is Create
    • and if object.InReplyTo is present and is a URL on your domain
      • then save as "source"
      • save object.InReplyTo as "target"
      • send a webmention to your webmention endpoint with the source and target

Then your site's existing webmention handling will fetch and verify the ActivityPub source URL, and if there are Microformats on the page, will even look like a reply.


See Also