Skip to content

Commit

Permalink
🚑 🔒 Use unique identifier for Mastodon Profile Information (#2181)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Radermacher <[email protected]>
  • Loading branch information
jeyemwey and lukasrad02 authored Dec 3, 2023
1 parent 0e7af03 commit 9f5af4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Enum/CacheKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function getGlobalStatsKey(Carbon $from, Carbon $to): string {
}

public static function getMastodonProfileInformationKey(User $user): string {
return "mastodon_{$user->name}";
return "mastodon_{$user->id}";
}

public static function getYearInReviewKey(User $user, int $year): string {
Expand Down

0 comments on commit 9f5af4e

Please sign in to comment.