ActivityPub Plugin

I just deployed your add_update_support_to_first_post_only branch on my test site and successfully walked through the functionality end to end; creating, editing, and deleting, with the mix of plugins I happen to have installed. Thank you! :tada:

Is community testing like this at all valuable?

2 Likes

Nice!

I wouldnā€™t necessarily advise it as a regular practice on all un-merged PRs as it does contain some risk and I canā€™t provide support for issues that crop up on umerged PRs (the PR review process plays an important role), but if you did find an issue that would be useful, so Iā€™m not going to tell you to stop if youā€™re ok with that risk, e.g. youā€™re deploying them on a development or staging site. I wouldnā€™t advise you deploy them in production.

1 Like

Oh absolutely, if it breaks I get to keep all the pieces. Also known as reloading my test siteā€™s database from a recent backup of the main site. :grin: Also, I understand that PRs get force-push updates, etc.

If my testing ever becomes distracting noise, donā€™t hesitate to tell me, I wonā€™t take it the wrong way. My goal is to support the effort, not to get in the way of development.

3 Likes

Maybe you can add check boxes on that post so we can follow progress?

The roadmap looks great, Iā€™m so happy this is ongoing. Kudos to you and the Pavilion team [edited:] for building it and the Discourse @team for commissioning and making it official!

6 Likes

Done. Checked means the feature is merged. Next on the list is

I just want to emphasise that this is a Discourse.org plugin and kudos should go to them for specifying, commissioning, publishing and supporting it. This is not a Pavilion plugin. Weā€™re just building it.

12 Likes

Re-reading this, Iā€™d like to look at the sub-category question I mentioned earlier. @mattdm, are you thinking of enabling this for Fedora Discussion? Iā€™d think that it could be a bad user experience to have to follow each of the sub-categories on Fedora Discussion separately?

For my site, I have 8 top-level categories to federate, with an additional 21 public subcategories.

Iā€™d like people to be able to subscribe to the top-level categories and get the public subcategory content, but not federate the view-limited subcategories (e.g. the Staff category is a private subcategory of a public parent category on my site).

I can see two ways about this:

  1. A configuration that says ā€œalso federate subcategoriesā€ (applying visibility restrictions)
  2. The ability to re-use Actors in category configuration, so that I can just apply the same Actor to the parent category and the public sub-categories

The second looks like a better choice; more flexible, more explicit, and if I understand right probably a better match with the data model.

I guess an alternative would be to build a bot (or bots) to automatically boost all posts by sets of Actors on my Discourse. That would let me also implement an @all@... as well.

:thinking:

4 Likes

Thanks for raising that again. Iā€™ll take a look, discuss internally and let you know.

3 Likes

The more Iā€™ve thought about this, the more I like the idea of keeping the Actors 1:1 with categories, so that users can follow exactly only the categories they want, and also making a bot that automatically boosts posts by a set of Actors (say, a category and all its public subcategories, or even all the public subcategories. Maximum flexibility, no additional work for you.

As I thought about this, I remembered that @Stark9837@techhub.social wrote a bot @3dprinting@techhub.social which automatically boosts all the posts it finds that contain the #3dprinting tag to create a kind of group. I asked about the bot and got this response:

So when itā€™s released it might just do exactly what Iā€™m looking for.

1 Like
  • Tag actors would be nice, and
  • when page-publishing is active, following newly published pages would be useful.
1 Like

@mcdanlj The way for posts grouped in topics (i.e. forum content) to be federated on a taxonomic basis is what Felix outlines in FEP-1b12. I did my own review of the specifications, architecture and current usage (particularly Mastodon) from first principles and came to the same conclusion he does there (and did with Lemmy). Basically, category Actors will be Announcing (boost in Mastodon) the Activities in their categories to their Followers. That will be how the ā€œFull Topicā€ mode in this plugin works. Iā€™m currently working on this item.

These wonā€™t be part of Phase 2, but are possible additions further down the line.

6 Likes

Thinking about it, yes. At first, I think weā€™d only use it for announcements (in combination with the scheduled publishing feature in a hidden category for drafts). It might also be useful for our social media team to use to draft/coordinate/schedule mastodon posts.

I think itā€™d be exciting to have something even wider, making it at least possible to follow everything ā€” and maybe even participate. But that would be much, much further down the road.

2 Likes

The current feature set of the plugin works well for this use case.

2 Likes

The plugin now has Visibility support. You can now make Notes, aka Mastodon statuses, public.

Next up is adding Article support (for long-form content) and improving the content parsing.

After that will be Full Topic support, which is almost ready. Hereā€™s a little preview

(and yes, it is compatible with FEP-1b12)

6 Likes

A post was merged into an existing topic: Working with the ActivityPub Plugin

The short answers to your questions are

  1. The default, and best supported, ActivityPub content is HTML (see further). We may add some form of markdown support to Notes and Articles in the future.

  2. Thereā€™s something else going on with your examples. This plugin sends HTML (currently, and also in this update). Your screenshots are showing uncooked markdown.

  3. Article support is explained in its commit message

    An Article is for when you donā€™t want to restrict the length of the content being federated (i.e. you want to federate entire posts). Note that Mastodon currently converts the content of Article types into a link, however platforms like Lemmy will show the full content. See further mastodon/mastodon#24079

4 Likes

As far as I can tell, Mastodon Glitch also supports markdown by rendering it to HTML server side. Thatā€™s what I hoped.

Now that I know that it should be sending HTML it seems likely that I have interference from another plugin. Iā€™ll test that. Thank you!

2 Likes

Just curious why this is not tagged ā€œofficialā€?

2 Likes

Maybe because it is not yet available for hosted customers by default

5 Likes

Right, the plugin is not official because it is still in fairly early stages of development. Hosted customers can certainly reach out and inquire about using it.

CDCK builds a lot of plugins and not all are marked official, some of the plugins we build are experimental, niche, etc. I do think eventually we will mark this plugin as official

10 Likes

6 posts were split to a new topic: Working with the ActivityPub Plugin