# ActivityPub Plugin

**URL:** <https://meta.discourse.org/t/activitypub-plugin/266794>\
**Category:** Plugin\
**Tags:** experimental, activitypub\
**Created:** [May 31, 2023, 5:21pm UTC](https://meta.discourse.org/t/activitypub-plugin/266794 "2023-05-31T17:21:52Z")\
**Posts on this page:** 1\
**Showing post:** 87

<div class="post-metadata">

**Author:** ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)\
**Post date:** [September 7, 2023, 7:02pm UTC](https://meta.discourse.org/t/activitypub-plugin/266794/87 "2023-09-07T19:02:59Z")

</div>

> [@angus](#):
>
> Support Like Activity
> 
> - See [Activity Vocabulary](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-like)
> 
> Support Discourse users verifying their identity on Mastodon so Discourse posts created from their Toots are associated with their Discourse user account.
> 
> - Allow a user to perform the [Mastodon OAuth Authorization](https://docs.joinmastodon.org/spec/oauth/) flow with the Mastodon server where their account is stored. This is initiated from the user’s Discourse account settings.
> - Using the Discourse user’s Mastodon access token, obtain and store the AP ID of their Mastodon account and store it with their Discourse account.
> - Associate all Discourse activities associated with AP Activities from an Actor bearing a Discourse user’s AP ID with that Discourse user, whether they were performed before or after the user verified their identity.

These two items are now done as well, I just merged @angus’s [PR for identity verification via OAuth](https://github.com/discourse/discourse-activity-pub/pull/24). Barring bug fixes and performance improvements, this completes the current phase of features added to the plugin.

As it stands, the plugin is quite feature-rich. To recap the main features quickly, the plugin supports:

- Followers Only post publication in ActivityPub (default is Public)
- First Post or Full Topic publication (default is First Post)
- two-way sync when using Full Topic publication, i.e. all Discourse-created posts in a topic will be published in ActivityPub, and vice versa, replies in ActivityPub will be posted to Discourse
- option to publish posts as Notes (for shorter content services like Mastodon) or Article (more appropriate for long content services)
- identity verification

Next up we will work on fine-tuning the current features, improving usability. Feedback is still welcome, of course. I am particularly interested in ways to explain how all this works to regular users, it’s not an easy feat.

> [@mcdanlj](#):
>
> Is the end goal, **broadly speaking,** to restrict Discourse to only what canonical ActivityPub supports, or is it to federate from an unrestricted native Discourse experience to the fediverse on a best-effort basis?

> [@angus](#):
>
> Personally, I don’t think about it either way. [Discourse.org](http://Discourse.org) will set the overall agenda here, but broadly speaking decisions are made on the basis of how it works, and what’s practical. If there’s a sensible and sustainable way of allowing authorship changes on all posts, regardless of provenance, then great.

I’m very much on the same page as @angus, our goal is to do what’s practical and achievable with a reasonable amount of effort. To that effect, we’re willing to accept some reduced functionality in Discourse at this time. That’s our best bet to find out if specific limitations are important to address or not (for example, will the plugin users often run into wiki-ActivityPub limitations?).

---

_[View the full topic](https://meta.discourse.org/t/activitypub-plugin/266794)._
