(BUG) Activity Loop args: scope 'favorites' overrides primary_id
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`.
Is there a solution or a workaround for this issue?
- The topic ‘(BUG) Activity Loop args: scope 'favorites' overrides primary_id’ is closed to new replies.