[buddypress-trac] [BuddyPress Trac] #6040: Friendship activity missing

buddypress-trac noreply at wordpress.org
Sat Dec 6 14:04:43 UTC 2014


#6040: Friendship activity missing
------------------------------------+------------------------------
 Reporter:  dontdream               |       Owner:  imath
     Type:  defect (bug)            |      Status:  assigned
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Friends                 |     Version:  1.1
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------------------

Comment (by boonebgorges):

 > I think it's not a big deal if the != initiator cannot delete the
 activity.

 I agree with you and dontdream here. Let's go with the single activity
 item as suggested.

 I would strongly prefer to avoid filtering SQL strings to make this work.
 It's my understanding from #4988 that we can do what imath has suggested
 here by making sure that 'personal' or 'just-me' activity queries (ie
 those that populate the user's Personal stream) with the following syntax:

 {{{
 $q = new BP_Activity_Query( array(
     'relation' => 'OR',
     array(
         'field' => 'user_id',
         'value' => $user_id,
     ),
     array(
         'relation' => 'AND',
         array(
             'field' => 'component',
             'value' => 'friends',
         ),
         array(
             'field' => 'secondary_item_id',
             'value' => $user_id,
         ),
     ),
 ) );
 }}}

 This is the beauty of the nested syntax :)

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


More information about the buddypress-trac mailing list