فهرست منبع

Update RemoteAvatarFetch command

Daniel Supernault 2 سال پیش
والد
کامیت
0eb51ed74d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/Jobs/AvatarPipeline/RemoteAvatarFetch.php

+ 2 - 2
app/Jobs/AvatarPipeline/RemoteAvatarFetch.php

@@ -60,7 +60,7 @@ class RemoteAvatarFetch implements ShouldQueue
 	{
 	{
 		$profile = $this->profile;
 		$profile = $this->profile;
 
 
-		if(config_cache('pixelfed.cloud_storage') == false && 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;
 		}
 		}
 
 
@@ -108,7 +108,7 @@ class RemoteAvatarFetch implements ShouldQueue
 		$avatar->remote_url = $icon['url'];
 		$avatar->remote_url = $icon['url'];
 		$avatar->save();
 		$avatar->save();
 
 
-		MediaStorageService::avatar($avatar, config_cache('pixelfed.cloud_storage') == false);
+		MediaStorageService::avatar($avatar, boolval(config_cache('pixelfed.cloud_storage')) == false);
 
 
 		return 1;
 		return 1;
 	}
 	}