[buddypress-trac] [BuddyPress Trac] #6842: Private Group @mention notifications should not go to non group members

buddypress-trac noreply at wordpress.org
Mon Jan 25 19:16:26 UTC 2016


#6842: Private Group @mention notifications should not go to non group members
--------------------------+------------------------------
 Reporter:  timeuser      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  API           |     Version:  2.4.0
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by timeuser):

 How do I submit a patch for this? I think it can be fixed by checking if
 user is a member of the group in bp_activity_filters.php function
 bp_activity_at_name_send_emails()

 Insert at line #341 in bp_activity_filters.php
 {{{#!php

 if (bp_is_group()) {
   $current_group = groups_get_current_group();
   // if the group is not public and mentioned user is not a member then
 don't send a notification
   if ('public' != $current_group->status && !groups_is_user_member(
 $user_id, $current_group->id )) {
     continue;
   }
 }
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6842#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list