[buddypress-trac] [BuddyPress] #2000: Duplicate cookie of bp-activity-oldest-page leads to duplicate posts in activity stream (was: [patch] again showing double-post in activity-stream)

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Feb 4 08:00:46 UTC 2011


#2000: Duplicate cookie of bp-activity-oldest-page leads to duplicate posts in
activity stream
----------------------+-----------------------
  Reporter:  erich73  |      Owner:  kunalb
      Type:  defect   |     Status:  accepted
  Priority:  major    |  Milestone:  1.3
 Component:  Theme    |    Version:  1.3
Resolution:           |   Keywords:  has-patch
----------------------+-----------------------
Changes (by r-a-y):

 * keywords:  has-patch, tested => has-patch
 * version:   => 1.3
 * component:  Activity => Theme


Comment:

 Was debugging the ajax querystring in a BP theme when I came across this
 bug; the fix is easier than you think!

 The jq.cookie was missing the path declaration, so jQuery was never
 looking for the previous "bp-activity-oldestpage" cookie, it created a new
 one and hence double posts galore!

 The attached patch fixes this; patch is against 1.3-trunk.

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2000#comment:14>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list