Skip to content

Show ActivityPub comment form based on permalink support - #641

Merged
akirk merged 2 commits into
mainfrom
feature/activitypub-comment-form
Apr 4, 2026
Merged

Show ActivityPub comment form based on permalink support#641
akirk merged 2 commits into
mainfrom
feature/activitypub-comment-form

Conversation

@akirk

@akirk akirk commented Apr 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add post_supports_activitypub() method that checks whether a post can receive ActivityPub replies by looking at the parser, post meta, or whether the permalink host is a known ActivityPub instance
  • Show a "comment at the source" message with link when a post doesn't support ActivityPub, instead of silently hiding the comment form
  • Simplify append_comment_form() and enable_comments_form() to use the new unified check

Test plan

  • View a single post that came via the ActivityPub feed parser — comment form should appear as before
  • View a single post from RSS whose permalink host is a known ActivityPub instance — comment form should now appear
  • View a single post from a non-ActivityPub source — should show "Commenting via ActivityPub is not available" message with link to the source
  • Test the AJAX comments path (clicking Comments link in feed view) for each of the above cases
Add post_supports_activitypub() to check whether a post can receive
ActivityPub replies by checking the parser, post meta, or whether the
permalink host is a known ActivityPub instance.

When a post doesn't support ActivityPub, show a message with a link to
comment at the source instead of silently hiding the form.
@github-actions

github-actions Bot commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Test this PR in WordPress Playground

You can test this pull request directly in WordPress Playground:

Launch WordPress Playground

This will install and activate the plugin with the changes from this PR.

@akirk
akirk merged commit a972942 into main Apr 4, 2026
26 checks passed
@akirk
akirk deleted the feature/activitypub-comment-form branch April 4, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant