Default Avatar URL is now returned
This commit is contained in:
parent
dbeb3d0ce7
commit
8efcc5742d
@ -40,12 +40,7 @@ class ActivityPubActorAction extends ManagedAction
|
|||||||
$profile = $user->getProfile();
|
$profile = $user->getProfile();
|
||||||
$url = $profile->profileurl;
|
$url = $profile->profileurl;
|
||||||
|
|
||||||
try {
|
$avatar = $profile->avatarUrl(AVATAR_PROFILE_SIZE);
|
||||||
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE)->displayUrl();
|
|
||||||
} catch (NoAvatarException $e) {
|
|
||||||
// TODO: fallback to current theme default avatar
|
|
||||||
$avatar = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
$res = [
|
$res = [
|
||||||
'@context' => [
|
'@context' => [
|
||||||
|
Reference in New Issue
Block a user