-
Notifications
You must be signed in to change notification settings - Fork 85
Refactor notification system to use action hooks instead #2223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
1e29453
Refactor notification system to use action hooks
pfefferle 8488156
Update includes/handler/class-update.php
pfefferle ce5869e
Update includes/handler/class-accept.php
pfefferle f902344
Update integration/class-stream-connector.php
pfefferle 6b10aa2
Refactor Accept handler to set $success before action
pfefferle c727a40
Align docblock param indentation in Stream_Connector
pfefferle 60592c6
Add changelog
matticbot d4b35f9
Merge branch 'trunk' into change/deprecate-notifications
pfefferle 8cdb9c9
Merge branch 'trunk' into change/deprecate-notifications
pfefferle 52d2e12
Update Accept handler action parameters
pfefferle 78714cf
Rename $reaction variable to $result in Announce handler
pfefferle 5ad1d1b
Rename variable from reaction to result in Create handler
pfefferle 7dbefe0
Update maybe_delete_follower return value and doc
pfefferle 3602a89
Standardize action hook parameter types and names
pfefferle d7baeac
Fix duplicate parameter in do_action call
pfefferle d8671c5
Change move status default from null to false
pfefferle ca158dc
Add deprecation notices to ActivityPub actions
pfefferle c5ea0f3
Update includes/handler/class-accept.php
pfefferle ba09426
Update includes/handler/class-announce.php
pfefferle f9b7ec0
Update includes/handler/class-create.php
pfefferle 0e59f0c
Update includes/handler/class-reject.php
pfefferle a881a53
Update includes/handler/class-undo.php
pfefferle 4ce56c4
Update includes/handler/class-delete.php
pfefferle d17a84f
Update includes/handler/class-update.php
pfefferle 653e703
Update includes/handler/class-delete.php
pfefferle 41d7d33
Update includes/handler/class-follow.php
pfefferle 6fb1953
Update includes/handler/class-update.php
pfefferle b6b0548
Update includes/handler/class-inbox.php
pfefferle 7863f65
Update includes/handler/class-like.php
pfefferle 4581f07
Refactor handler actions to use success flag and result
pfefferle 2ed1715
Fix docblock formatting in Accept handler
pfefferle 18db869
Clarify $success param in handler docblocks
pfefferle 6622b09
Improve parameter docs and variable naming consistency
pfefferle b75a119
Refactor Undo handler and add object validation
pfefferle df7b974
Allow remove() to accept WP_Post or ID in Followers
pfefferle 18be575
Add unit tests for Undo handler functionality
pfefferle 0fd91bf
Refactor undo handler tests to use data providers
pfefferle 8624bdc
Expand and refactor follow handler tests
pfefferle 71185f2
Expand Like handler tests with new scenarios and hooks
pfefferle 0e2069d
Refactor and expand handler tests with data providers
pfefferle 4718038
Refactor get_type tests to use data provider
pfefferle 141d895
Refactor inbox handler test with data provider
pfefferle c2556bb
Remove redundant @covers annotation in inbox test
pfefferle 35e4395
Add integration tests for Stream Connector
pfefferle dfd7151
Add test for prepare_outbox_data_for_response with blog user URL
pfefferle 7742452
Merge branch 'trunk' into change/deprecate-notifications
pfefferle 0aa68c1
Merge branch 'trunk' into change/deprecate-notifications
pfefferle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: changed | ||
|
||
Standardized notification handling with new hooks for better extensibility and consistency. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.