Opened 15 years ago
Closed 14 years ago
#2397 closed enhancement (fixed)
Add a do_action in bp_activity_at_message_notification()
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | Version: | ||
Component: | Activity | Keywords: | |
Cc: |
Description
I would like to propose the following do_action after line 8 in bp-activity-notifications.php:
do_action( 'activity_before_notify', $content, $poster_user_id, $usernames );
This will help plugin writers to manipulate what happens when someone attempts to send an @mention.
Possible use cases include checking friendship status, blocking @mention emails, limiting @mentions per activity update, creating an ignore @mentions list, etc.
Thanks to jessica120 for spamming and inspiring this ticket! ;)
http://buddypress.org/community/members/jessica120/
Listing as a defect so it'll be seen, but feel free to drop it down to an enhancement.
Sorry r-a-y, pushing to 1.3 as an enhancement. A do_action there doesn't directly manipulate any of that data, and I'm not sure that filtering all of those values before hand makes sense either.
This probably needs further review along with the rest of the notifications, since it would make sense to try and make some global changes where possible.