Skip to content

Persist Mastodon API boosts locally - #691

Merged
akirk merged 3 commits into
mainfrom
fix/persist-mastodon-api-boosts
Jul 13, 2026
Merged

Persist Mastodon API boosts locally#691
akirk merged 3 commits into
mainfrom
fix/persist-mastodon-api-boosts

Conversation

@akirk

@akirk akirk commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • Persist local boost metadata when the Mastodon API reblog hook queues an Announce
  • Remove local boost metadata on unreblog
  • Add boosted Friends posts to EMA account statuses as reblog wrappers
  • Use boost timestamps for reblog wrapper ordering
  • Add regression coverage for API reblog persistence and account-status boost visibility

Verification

  • php -l feed-parsers/class-feed-parser-activitypub.php
  • php -l integrations/class-enable-mastodon-apps.php
  • php -l tests/test-only-ema.php
  • Live curl confirmed the backfilled recent boost appears as a reblog wrapper in account statuses

No PHPUnit run in this environment.

  • Automatically create a changelog entry from the details below
Changelog entry

Type

  • Added
  • Changed
  • Fixed
  • Removed

Message

Persist Mastodon API boosts locally so announced boosts also appear in Mastodon account statuses.

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 6b83c2c into main Jul 13, 2026
26 checks passed
@akirk
akirk deleted the fix/persist-mastodon-api-boosts branch July 13, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant