mirror of https://github.com/pixelfed/pixelfed.git
Update Profile
This commit is contained in:
parent
5bea903409
commit
ab9a8ba314
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue