[buddypress-trac] [BuddyPress Trac] #7331: display_comments=stream for bp_has_activities() doesn't work

buddypress-trac noreply at wordpress.org
Sun Nov 6 23:00:06 UTC 2016


#7331: display_comments=stream for bp_has_activities() doesn't work
-------------------------------------+------------------
 Reporter:  slaFFik                  |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  2.8
Component:  Activity                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |
-------------------------------------+------------------
Description changed by slaFFik:

Old description:

> It's rather hard to explain.
>
> 1) Go to a group
> 2) create top level activity there
> 3) create 1 or 2 replies to it.
> 4) Open /activity/activity-loop.php file in templates.
> 5) Modify `bp_has_activities()` call to this:
>
> {{{
> if ( bp_has_activities( bp_ajax_querystring( 'activity' ) .
> '&display_comments=stream' ) )
> }}}
>
> '''Expected result:'''
> All comments (including replies) displayed in one stream, with no
> parent/child.
>
> '''Actual result:'''
> Only top level items are displayed.
>
> --
>
> Problems are in several places. See the 01 patch for the fix of the 1st
> one.

New description:

 It's rather hard to explain.

 1) Go to a group
 2) create top level activity there
 3) create 1 or 2 replies to it.
 4) Open /activity/activity-loop.php file in templates.
 5) Modify `bp_has_activities()` call to this:

 {{{
 if ( bp_has_activities( bp_ajax_querystring( 'activity' ) .
 '&display_comments=stream' ) )
 }}}

 '''Expected result:'''
 All comments (including replies) displayed in one stream, with no
 parent/child.

 '''Actual result:'''
 Only top level items are displayed.

 --

 Problems are in several places. See the 01 patch for the fix of the 1st
 one.

 --

 Reason why I started investigating this: #4740.
 Currently our feed is broken because of this issue.

--

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


More information about the buddypress-trac mailing list