1
0
Fork 0
forked from mirror/pixelfed

Update Profile

This commit is contained in:
Daniel Supernault 2023-06-06 05:50:08 -06:00
parent 5bea903409
commit ab9a8ba314
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -178,6 +178,14 @@ class Profile extends Model
return url('/storage/avatars/default.jpg'); 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') { if($path === 'public/avatars/default.jpg') {
return url('/storage/avatars/default.jpg'); return url('/storage/avatars/default.jpg');
} }