Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/boost/leaderboard_permission.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (

const (
// LeaderboardPermissionKey is the key used to store the timestamp of when the user allowed leaderboard API permissions
LeaderboardPermissionKey = "allow_leaderboard_apix"
LeaderboardPermissionKey = "allow_leaderboard_api"
// LeaderboardPermissionSpanKey holds the selected permission duration ("24h" or "forever")
LeaderboardPermissionSpanKey = "allow_leaderboard_apix_span"
LeaderboardPermissionSpanKey = "allow_leaderboard_api_span"
Comment on lines 13 to +17
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing these persisted misc-setting keys will orphan existing saved permissions (values stored under the previous "allow_leaderboard_apix*" keys will no longer be read), causing users to be re-prompted and losing any prior "forever" grants. Consider adding backwards-compatible reads (check old keys when new key is empty) and migrating by writing the value to the new key (and optionally deleting the old key).

Copilot uses AI. Check for mistakes.
// LeaderboardPermission24h is the duration for 24 hours permission
LeaderboardPermission24h = 24 * time.Hour
)
Expand Down
Loading