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
1 changed files with 8 additions and 0 deletions

View File

@ -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');
}