From e3be04db2b70de0042d40829ada677cfca716555 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 6 Jun 2023 06:08:00 -0600 Subject: [PATCH] Update HandleUpdateActivity --- app/Jobs/AvatarPipeline/RemoteAvatarFetchFromUrl.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Jobs/AvatarPipeline/RemoteAvatarFetchFromUrl.php b/app/Jobs/AvatarPipeline/RemoteAvatarFetchFromUrl.php index 932372a50..259058385 100644 --- a/app/Jobs/AvatarPipeline/RemoteAvatarFetchFromUrl.php +++ b/app/Jobs/AvatarPipeline/RemoteAvatarFetchFromUrl.php @@ -64,6 +64,9 @@ class RemoteAvatarFetchFromUrl implements ShouldQueue { $profile = $this->profile; + Cache::forget('avatar:' . $profile->id); + AccountService::del($profile->id); + if(boolval(config_cache('pixelfed.cloud_storage')) == false && boolval(config_cache('federation.avatars.store_local')) == false) { return 1; } @@ -86,8 +89,6 @@ class RemoteAvatarFetchFromUrl implements ShouldQueue $avatar->save(); } - Cache::forget('avatar:' . $avatar->profile_id); - AccountService::del($avatar->profile_id); MediaStorageService::avatar($avatar, boolval(config_cache('pixelfed.cloud_storage')) == false, true);