[buddypress-trac] [BuddyPress] #2397: Add a do_action in bp_activity_at_message_notification()
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Fri May 21 21:48:36 UTC 2010
#2397: Add a do_action in bp_activity_at_message_notification()
----------------------+-----------------------------------------------------
Reporter: r-a-y | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.3
Component: Activity | Keywords:
----------------------+-----------------------------------------------------
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.
--
Ticket URL: <http://trac.buddypress.org/ticket/2397>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list