1
0
Эх сурвалжийг харах

Update HandleUpdateActivity

Daniel Supernault 2 жил өмнө
parent
commit
e3be04db2b

+ 3 - 2
app/Jobs/AvatarPipeline/RemoteAvatarFetchFromUrl.php

@@ -64,6 +64,9 @@ class RemoteAvatarFetchFromUrl implements ShouldQueue
 	{
 	{
 		$profile = $this->profile;
 		$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) {
 		if(boolval(config_cache('pixelfed.cloud_storage')) == false && boolval(config_cache('federation.avatars.store_local')) == false) {
 			return 1;
 			return 1;
 		}
 		}
@@ -86,8 +89,6 @@ class RemoteAvatarFetchFromUrl implements ShouldQueue
 			$avatar->save();
 			$avatar->save();
 		}
 		}
 
 
-		Cache::forget('avatar:' . $avatar->profile_id);
-		AccountService::del($avatar->profile_id);
 
 
 		MediaStorageService::avatar($avatar, boolval(config_cache('pixelfed.cloud_storage')) == false, true);
 		MediaStorageService::avatar($avatar, boolval(config_cache('pixelfed.cloud_storage')) == false, true);