mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Profile model, use change_count for version
This commit is contained in:
parent
e6190b896b
commit
0eae9f8b78
1 changed files with 1 additions and 2 deletions
|
@ -137,8 +137,7 @@ class Profile extends Model
|
|||
$url = Cache::remember('avatar:'.$this->id, now()->addYears(1), function () {
|
||||
$avatar = $this->avatar;
|
||||
$path = $avatar->media_path;
|
||||
$version = hash('sha256', $avatar->change_count);
|
||||
$path = "{$path}?v={$version}";
|
||||
$path = "{$path}?v={$avatar->change_count}";
|
||||
|
||||
return config('app.url') . Storage::url($path);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue