[buddypress-trac] [BuddyPress Trac] #5447: Posting an activity reload the last activity into the stream
buddypress-trac
noreply at wordpress.org
Wed Mar 5 10:02:13 UTC 2014
#5447: Posting an activity reload the last activity into the stream
--------------------------+-----------------------------
Reporter: imath | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version:
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
Since the introduction of the "heartbeat check", posting an activity uses
the offset argument to load the just posted activity and the activities
that might have been posted by others in the meantime.
Offset is requesting ">=" and we're passing the last displayed id on the
stream. As a result, this last displayed activity is reloaded.
I think it's something we forgot to implement when posting a new activity
as we're adding +1 to the offset argument in
{{{bp_activity_heartbeat_last_recorded()}}} function.
The patch simply adds +1 when requesting for activities once a new
activity is posted in {{{bp_legacy_theme_post_update()}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5447>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list