Opened 11 years ago
Closed 11 years ago
#5447 closed defect (bug) (fixed)
Posting an activity reload the last activity into the stream
Reported by: | imath | Owned by: | imath |
---|---|---|---|
Milestone: | 2.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Activity | Keywords: | has-patch commit |
Cc: |
Description
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()
Sorry, this is my fault. Fix looks good.