[buddypress-trac] [BuddyPress] #4851: Activity Loop args: scope 'favorites' overrides primary_id

buddypress-trac noreply at wordpress.org
Wed Feb 27 09:39:57 UTC 2013


#4851: Activity Loop args: scope 'favorites' overrides primary_id
--------------------------+--------------------------------------
 Reporter:  LucaRosaldi   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Activity      |    Version:  1.7
 Severity:  normal        |   Keywords:  needs-patch dev-feedback
--------------------------+--------------------------------------
 Hi,

 I wanted to show the favorites activity for a specific group, so I used
 the following args for the bp_has_activities() loop:

 {{{
 $args = array(
     'primary_id' => [group_id],
     'object' => 'groups',
     'scope' => 'favorites'
 );
 }}}

 Obviously, the [group_id] is the actual group id.

 The result is: the loop shows the favorites activity for the current user,
 but sitewide, not for the current group only.

 If I use any other scope (e.g. 'just-me'), instead, it returns the
 activity only for the group specified with the primary_id.

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


More information about the buddypress-trac mailing list