[buddypress-trac] [BuddyPress Trac] #5449: bp_has_activities - include & exclude no longer working?

buddypress-trac noreply at wordpress.org
Thu Mar 6 22:39:06 UTC 2014

#5449: bp_has_activities - include & exclude no longer working?
 Reporter:  shanebp            |       Owner:
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Activity           |     Version:  1.9.2
 Severity:  normal             |  Resolution:  invalid
 Keywords:  reporter-feedback  |
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


 > Would it be reasonable to request the expansion of the activity loop
 scope parameter to allow more than one argument?

 It'd be complicated. Each value of $scope is shorthand for a combination
 of other parameters (eg, 'scope=groups' translates to
 'object=groups&primary_id=[listofgroupids]'). Allowing for multiple scopes
 would mean the ability to join parameter combinations into chunks,
 separated by booleans. This is a pretty major change in the way we
 currently build our queries. Not out of the question, but definitely too
 hard to do now. Feel free to open a separate enhancement ticket for it.

 For a short term solution to the thread in question, get a list of friend
 IDs, add the logged-in user to the list, and then pass to 'user_id':

 $include = array_merge( array( bp_loggedin_user_id(),
 friends_get_friend_user_ids( bp_loggedin_user_id() );

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5449#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list