Default Avatar URL is now returned

This commit is contained in:
Diogo Cordeiro 2018-04-28 20:59:47 +01:00
parent dbeb3d0ce7
commit 8efcc5742d

View File

@ -40,12 +40,7 @@ class ActivityPubActorAction extends ManagedAction
$profile = $user->getProfile();
$url = $profile->profileurl;
try {
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE)->displayUrl();
} catch (NoAvatarException $e) {
// TODO: fallback to current theme default avatar
$avatar = null;
}
$avatar = $profile->avatarUrl(AVATAR_PROFILE_SIZE);
$res = [
'@context' => [