|
|
|
@ -441,7 +441,7 @@ class Helpers {
|
|
|
|
|
$media->version = 3;
|
|
|
|
|
$media->save();
|
|
|
|
|
|
|
|
|
|
if(config('pixelfed.cloud_storage') == true) {
|
|
|
|
|
if(config_cache('pixelfed.cloud_storage') == true) {
|
|
|
|
|
MediaStoragePipeline::dispatch($media);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -511,7 +511,7 @@ class Helpers {
|
|
|
|
|
$profile->webfinger = Purify::clean($webfinger);
|
|
|
|
|
$profile->last_fetched_at = now();
|
|
|
|
|
$profile->save();
|
|
|
|
|
if(config('pixelfed.cloud_storage') == true) {
|
|
|
|
|
if(config_cache('pixelfed.cloud_storage') == true) {
|
|
|
|
|
RemoteAvatarFetch::dispatch($profile);
|
|
|
|
|
}
|
|
|
|
|
return $profile;
|
|
|
|
@ -528,7 +528,7 @@ class Helpers {
|
|
|
|
|
$profile->sharedInbox = isset($res['endpoints']) && isset($res['endpoints']['sharedInbox']) && Helpers::validateUrl($res['endpoints']['sharedInbox']) ? $res['endpoints']['sharedInbox'] : null;
|
|
|
|
|
$profile->save();
|
|
|
|
|
}
|
|
|
|
|
if(config('pixelfed.cloud_storage') == true) {
|
|
|
|
|
if(config_cache('pixelfed.cloud_storage') == true) {
|
|
|
|
|
RemoteAvatarFetch::dispatch($profile);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|