Skip to content

Cache ActivityPub actor handles for cached posts - #686

Merged
akirk merged 5 commits into
mainfrom
fix/comment-on-cached-ap-post-federation
Jul 9, 2026
Merged

akirk merged 5 commits into
mainfrom
fix/comment-on-cached-ap-post-federation

Conversation

@akirk

@akirk akirk commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • cache ActivityPub actor acct values on incoming cached posts when available
  • prefer cached acct / ap_actor_id lookups before host-based URL heuristics
  • add a one-time migration for the latest 100 cached posts with ap_actor_id
  • show only active, de-duplicated ActivityPub feeds in the author header
  • use the subscription-aware local post query when checking ActivityPub subscription health

Testing

  • composer check-cs -- includes/class-migration.php includes/class-friends.php feed-parsers/class-feed-parser-activitypub.php tests/test-migration.php tests/test-mastodon-api-performance.php
  • composer check-cs -- templates/frontend/author-header.php
  • composer test
Changelog
  • Automatically create a changelog entry from the details below

Type

  • Fixed

Message

Avoid slow ActivityPub host lookups by caching actor handles for cached posts and improve ActivityPub subscription status display.

@github-actions

github-actions Bot commented Jul 7, 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 force-pushed the fix/comment-on-cached-ap-post-federation branch from 1851684 to 3ae20fc Compare July 8, 2026 04:44
@akirk
akirk force-pushed the fix/comment-on-cached-ap-post-federation branch from 090073b to e281ac9 Compare July 8, 2026 05:35
@akirk
akirk merged commit 75ca047 into main Jul 9, 2026
27 checks passed
@akirk
akirk deleted the fix/comment-on-cached-ap-post-federation branch July 9, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant