[buddypress-trac] [BuddyPress] #4897: Loading more activities after an update displays last activity in double

buddypress-trac noreply at wordpress.org
Sun Mar 24 23:51:39 UTC 2013


#4897: Loading more activities after an update displays last activity in double
-------------------------+-----------------------------------
 Reporter:  imath        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Activity     |    Version:  1.7
 Severity:  minor        |   Keywords:  has-patch 2nd-opinion
-------------------------+-----------------------------------
 Hi,

 I hope, i'll succeed to explain this minor "issue" in english!!

 Let's say, there's 21 activities in database. When i go on Activity
 directory, i have 20 activities displayed and the load more link.
 Now imagine, i post a new activity, i have 21 activities displayed and the
 load more link.
 Now if i click on the load more link, the activity just before the load
 more link will be displayed again, and we get the same id in double (for
 instance : #activity-20)

 So i thought, the easiest way to avoid this, is to "remove from display"
 the activity just before the load more link in case of a new update.

 You'll find the javascript enhancement in the diff attached to this ticket

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4897>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list