wordpress-activitypub icon indicating copy to clipboard operation
wordpress-activitypub copied to clipboard

Feature Request: Comments-only page (for iframes)

Open maltfield opened this issue 10 months ago • 4 comments

What

This is a request for this plugin to create some permalink for every post that only displays the (ActivityPub) comments for the post

Why

Many organizations struggle with fragmented comment threads across may sites (wordpress, self-hosted forums, wiki, etc).

One common solution to this is to try to have one threaded discussion that's then embedded into each distinct website. We see many projects that offer this, for example:

  • https://wordpress.org/plugins/disqus-comment-system/
  • https://wordpress.org/plugins/wp-discourse/
  • https://ido.wordpress.org/plugins/post-to-flarum/

Our organization is looking to achieve something similar to this, but with ActivityPub. This Wordpress ActivityPub plugin is in a great position to solve this headache, if it can provide a single page endpoint that can be embedded on other sites (in an iframe)

How

Every post & page with (ActivityPub) comments enabled would have a dedicated permalink URL, which only displays the (ActivytPub) comments for that page/post. For example:

  • https://wordpress.example.com/my-post?commentsOnly=1 or
  • https://wordpress.example.com/wordpress-activity-pub-comments/my-post

Then the org would be empowered to embed this wordpress comments-only page onto other websites about the topic, such as our org's MediaWiki site:

<iframe src="https://wordpress.example.com/wordpress-activity-pub-comments/my-post"></iframe>

Then users viewing the companion article on our wiki would be able to view (and participate-in) the exact same comments thread that's made on the corresponding wordpress article.

maltfield avatar Mar 04 '25 22:03 maltfield

I have a need for something like this too, and am looking at the columns added in my display that include a column for "Comment Type" and "Protocol" (values of Local for on site comments and ActivityPub for these)

I'm thinking of just customizing the queries in my comments.php template, as I will want to separate only ActivityPub ones that are Posts (Comment-Type=Comment), not likes, reposts) and maybe add a second display for just site comments.

I'm wondering where these meta data are stories in WordPress?

cogdog avatar Mar 17 '25 16:03 cogdog

Hey @cogdog 👋

Comments from the fediverse are stored like normal comments but with a Post-Meta protocol = activitypub. All other types of reactions (likes and shares) should already be filtered out of the stream.

pfefferle avatar Mar 17 '25 17:03 pfefferle

Ahh I can see it now, the comment streams are much cleaner with only federated replies. And now I can do some custom things like use the comment_post hook to collect stats on federated comments. And I have spotted where in the comment meta data I can find the post URL. Lots of ideas happening.

cogdog avatar Mar 18 '25 21:03 cogdog

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jul 17 '25 02:07 github-actions[bot]