# 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:** 34

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [July 10, 2023, 6:43am UTC](https://meta.discourse.org/t/activitypub-plugin/266794/34 "2023-07-10T06:43:58Z")

</div>

Hey guys, I’m happy to say that the second phase of work on this plugin has been approved. This is what we’ve already started work on, with the aim of releasing it in about 3.5 months.

Support editing Note post-publication

- Add support for [Update Activity](https://www.w3.org/TR/activitypub/#update-activity-inbox)

Support restoring Notes

- Add support for Undo of the [Delete Activity](https://www.w3.org/TR/activitypub/#delete-activity-inbox)

Support publishing posts publicly as well as followers only

- Category-level setting
- See further [Audience Targeting](https://www.w3.org/TR/activitystreams-vocabulary/#audienceTargeting) and Mastodon’s docs on [to/cc](https://docs.joinmastodon.org/spec/activitypub/)
- Switch to public posts as the default

Improve Note content parsing

- Handle special characters (perhaps use a different parser). [See further](https://meta.discourse.org/t/activitypub-plugin/266794/6).

Support use of [Article](https://www.w3.org/TR/activitystreams-vocabulary/#types) instead of [Note](https://www.w3.org/TR/activitystreams-vocabulary/#types) as the Object for a post.

- Category level setting

Support accepting Activities in reply to a Note made on remotes and publishing Activities in reply to a Note made in Discourse.

- Publish Activities concerning replies made on Discourse
  - Allow Discourse users to be Actors
  - Create Note objects for Discourse replies (posts)
  - Publish associated Create/Delete/Update/Undo Activities for their equivalent Discourse actions

- Accept Activities concerning replies made on remotes
  - Stage the Actors of Activities from remote servers as Discourse users
  - Create Discourse replies (posts) from Note objects
  - Convert associated Create/Delete/Update/Undo Activities into their equivalent Discourse actions

- Add a category setting to toggle between First Post only (current) and “Full Topic” which supports reply Activities.

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.

---

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