Activity timestamp errors
I searched for Colin on the People page and it showed him as having been active 5 months ago. On his profile, I see he was active 3 days ago. I know we dealt previously with errors on the homepage activity timestamps; I'm not sure whether these are related. Screenshots attached
#5 Updated by Raymond Hoh 28 days ago
- Status changed from Assigned to Staged for Production Release
The issue is we are using the legacy BuddyPress user query on the People page, which looks up the wrong last activity timestamp. The legacy query uses the timestamp from the user meta DB table instead of the activity DB table.
To fix this, we need to patch the legacy user query in BuddyPress. I've done so here - https://github.com/cuny-academic-commons/cac/commit/b6fca8943b14573c40bfcbea9e86c19ae55a34a2.
Boone, I'll open a ticket on BP Trac about this.
#7 Updated by Raymond Hoh 28 days ago
This bug popped up because we stopped mirroring last activity to user meta in #10687.
We might need to reinstate the user meta mirroring due to sorting by last active on the People page... the alternative is to rewrite the Members search to stop relying on the legacy user query.