Skip to content

Conversation

@akirk
Copy link
Member

@akirk akirk commented Dec 2, 2025

Proposed changes:

Other information:

  • Have you written new tests for your changes, if applicable?

This is what it would look like in Phanpy:
Screenshot 2025-12-02 at 12 29 22

Testing instructions:

  • Ensure that your site has a boost or like of a post, or a follower.
  • Install the Enable Mastodon Apps plugin (Note: the Friends plugin is not needed for this)
  • Setup a Mastodon app by entering your WordPress URL as Mastodon instance
  • Check the notifications tab/menu of your app and see the abov there.

Changelog entry

  • Automatically create a changelog entry from the details below.
Changelog Entry Details

Significance

  • Patch
  • Minor
  • Major

Type

  • Added - for new features
  • Changed - for changes in existing functionality
  • Deprecated - for soon-to-be removed features
  • Removed - for now removed features
  • Fixed - for any bug fixes
  • Security - in case of vulnerabilities

Message

Add notifications for boosts, likes, and new followers in Mastodon apps via the Enable Mastodon Apps plugin

Copilot AI review requested due to automatic review settings December 2, 2025 09:36
@github-actions github-actions bot added the [Focus] Compatibility Ensuring the plugin plays well with other plugins label Dec 2, 2025
Copilot finished reviewing on behalf of akirk December 2, 2025 09:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds notification support for boosts (reblogs), likes (favourites), and new followers to the Enable Mastodon Apps integration. It introduces a new api_notifications_get filter handler that aggregates notifications from ActivityPub comments (likes and reblogs) and follower records, returning them in Mastodon API format.

Key changes:

  • Added notification filtering and aggregation for boosts, likes, and follows via api_notifications_get() method
  • Refactored common Actor-to-Account conversion logic into a reusable actor_to_account() helper method
  • Extended ActivityPub object type support from just 'Note' to include 'Article' types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@pfefferle pfefferle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

♥️

@pfefferle pfefferle merged commit e165390 into trunk Dec 3, 2025
15 checks passed
@pfefferle pfefferle deleted the add-ema-notifications branch December 3, 2025 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Focus] Compatibility Ensuring the plugin plays well with other plugins [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants