[buddypress-trac] [BuddyPress] #5297: Disallow multiple core and email notifications for same item

buddypress-trac noreply at wordpress.org
Mon Dec 16 09:36:35 UTC 2013


#5297: Disallow multiple core and email notifications for same item
---------------------------+-----------------------------
 Reporter:  henrywright    |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Notifications  |    Version:
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 Although this is way too late to think about for 1.9, is it worth
 disallowing multiple core and email notifications for the same item? For
 example, Member X might decide to continually at-mention Member G in a
 blog post which would result in multiple core and email notifications
 being sent to Member G.

 Perhaps a check to see if a read or unread notification already exists
 would stop this from happening?

 {{{
 $notifications = BP_Notifications_Notification::get( array(
     'user_id' => $mentioned_user_id,
     'item_id' => $item_id,
     'secondary_item_id' => $mentioner_id,
     'component_action'  => 'new_at_mention'
 ) );

 if ( ! $notifications ) {
     // send an email or add a core notification
 }
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5297>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list