From ab9a8ba3143744ef3eea1d62c49fcab033091ace Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 6 Jun 2023 05:50:08 -0600 Subject: [PATCH] Update Profile --- app/Profile.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Profile.php b/app/Profile.php index 5c8d2ccb..a7e4eff2 100644 --- a/app/Profile.php +++ b/app/Profile.php @@ -178,6 +178,14 @@ class Profile extends Model return url('/storage/avatars/default.jpg'); } + if( $avatar->is_remote && + $avatar->remote_url && + boolval(config_cache('pixelfed.cloud_storage')) == false && + boolval(config_cache('federation.avatars.store_local')) == true + ) { + return $avatar->remote_url; + } + if($path === 'public/avatars/default.jpg') { return url('/storage/avatars/default.jpg'); }