[buddypress-trac] [BuddyPress Trac] #7368: Filter / sorting Activity stream

buddypress-trac noreply at wordpress.org
Wed Nov 30 19:45:16 UTC 2016

#7368: Filter / sorting Activity stream
 Reporter:  Sweeny           |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Activity         |     Version:  2.7.2
 Severity:  normal           |  Resolution:
 Keywords:  dev-feedback     |
Changes (by slaFFik):

 * keywords:   => dev-feedback


 Also related - plugins was created a long time ago, that is bumping
 activity items to the top once a reply to is is published:

 Might be a source of inspiration.

 But in general, I'm against bumping top level activity item to the top of
 Activity Stream when a new child comment is added to it. Reason: this will
 quickly pollute the stream and will make it hard to read new things in it.
 This opens a possibility for a new "Hot" or "Most Discussed" tab in
 Activity Directory navigation.

 BUT if you are talking about reversing the order of child comments to an
 activity element - that's a whole another story, and I'm pretty sure it
 can be filtered with the current filter we have (it's a matter of changing
 ASC to DESC for the order by date) -
 `BP_Activity_Activity::get_activity_comments()` 1434. You can switch to
 using old query via `bp_use_legacy_activity_query` and have ability to
 filter it. In newer implementation - you can't :(.

 What about adding a filter for `return $comments` in that method? We will
 be able to alter that array and reverse the order, for example.

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

More information about the buddypress-trac mailing list