Skip to content

Use event start date for speaker badge activity timestamp#1662

Open
dd32 wants to merge 2 commits intoproductionfrom
fix/claude/1432-speaker-badge-date-v2
Open

Use event start date for speaker badge activity timestamp#1662
dd32 wants to merge 2 commits intoproductionfrom
fix/claude/1432-speaker-badge-date-v2

Conversation

@dd32
Copy link
Copy Markdown
Member

@dd32 dd32 commented Mar 24, 2026

Summary

  • Changes the activity timestamp in get_post_activity_payload() from post_modified_gmt to the WordCamp start date
  • Falls back to post_date_gmt (published date) if no event start date is available
  • Previously, when a speaker badge was awarded months after the event (e.g. when the WordPress.org username was finally added), the activity showed the current date rather than when the event happened

Changes

  • wordcamp-participation-notifier.php: Replace strtotime($post->post_modified_gmt) with WordCamp start date, falling back to post published date

Test plan

  • On a sandbox, add a WordPress.org username to a speaker post for a past WordCamp
  • Verify the profile activity log shows the event date, not the current date
  • Verify that for current/recent events, the behavior is unchanged (event start date is used)

Fixes #1432

🤖 Generated with Claude Code

dd32 and others added 2 commits March 24, 2026 11:36
When a speaker badge is awarded later (e.g. months after the event when
the WordPress.org username is finally added), the activity timestamp
showed the current date instead of when the event actually happened.

Now uses the WordCamp start date for the activity timestamp, falling
back to the post published date. This ensures the badge activity appears
at the correct point in the user timeline.

Fixes #1432

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
For events that have not yet occurred, use the current time instead of
the future event start date. This prevents activity entries from having
timestamps in the future.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WordCamp Speaker badges should have the date of their published post, not when they were added.

1 participant