#7896 closed defect (bug) (fixed)
Legacy: Activity stream's "Load More" button doesn't work
Reported by: | r-a-y | Owned by: | r-a-y |
---|---|---|---|
Milestone: | 3.2.0 | Priority: | normal |
Severity: | major | Version: | 3.0.0 |
Component: | Templates | Keywords: | has-patch commit |
Cc: |
Description
If you have the Legacy template pack enabled, the activity stream's "Load More" button does not work.
See:
https://buddypress.org/support/topic/activity-load-more-not-working/
https://buddypress.org/support/topic/bp-activity-oldestpage-pagination-cookie-bug-on-page-reload/
The problem is due to the bp-activity-oldestpage
cookie being removed from initialization in #7699.
I'm not sure how to address this without either reintroducing the cookie (which we don't want to do) or adding some changes to the javascript.
Attachments (2)
Change History (10)
#2
@
6 years ago
This is a hack. As it removes a cookie, it's not re-introducing creation of the cookie all the time, so it's not against the idea with #7699. If this works, go for it.
We need browser tests to capture these sorts of regressions, and that's something I hope to spearhead through the next few months.
#3
follow-up:
↓ 4
@
6 years ago
If this cookie is basically reset on each subsequent page load, how about just switching the data storage to a data attribute on the form element somewhere? (Nouveau only - we leave Legacy as it is).
#4
in reply to:
↑ 3
@
6 years ago
Replying to DJPaul:
If this cookie is basically reset on each subsequent page load, how about just switching the data storage to a data attribute on the form element somewhere? (Nouveau only - we leave Legacy as it is).
I like this idea, and I think we should do it in Legacy as well, for GDPR-related reasons. See #7856.
#5
@
6 years ago
7896.02.patch converts it to a simple JS variable. Any reason why this won't work?
01.patch
always purges thebp-activity-oldestpage
cookie, which will enable the "Load More" button to work again.This allows for the original intention behind #7699 to still be respected (kinda).