[buddypress-trac] [BuddyPress Trac] #5603: Posting a new Activity causes activity-loop.php scope filters to be removed

buddypress-trac noreply at wordpress.org
Wed Apr 30 23:39:33 UTC 2014

#5603: Posting a new Activity causes activity-loop.php scope filters to be removed
 Reporter:  xyhavoc       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Activity      |    Version:  2.0
 Severity:  major         |   Keywords:
 In BP 2.0, limiting the scope within activity-loop.php doesn't work
 consistently when posting a new activity update.

 For instance:

 -activity-loop.php I have added the filter “&action=activity_update” so
 that the stream only shows user’s activity posts, as per the codex

 -I Pull up the activity feed on the web site, everything looks A-OK, the
 scope filters are working as they should.

 -Then I post a new activity update, when Buddypress adds the new activity
 via javascript, the filter is removed and the user can now scroll and see
 activities that should not be visible because of the activity-loop.php
 scope filter that have been set.

 imath recommended adding a new way of limiting the scope through bp-
 custom.php but that doesn't make sense if there's already a documented way
 of limiting the scope through buddypress templates. However his fix did
 not work.

 Link to his fix: https://gist.github.com/imath/5c7e4db74513ca4b30b8

 I'm comparing BP 1.9 buddypress.js against BP 2.0 buddypress.js to see if
 this is where the problem lies and I think it may have something to do
 with the "load newest activities" functions, but I could be wrong. Any
 thoughts? Can anyone else reproduce this?

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5603>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list