Update ActivityPubActor action
This commit is contained in:
parent
80bf4c1219
commit
d44a5974da
@ -40,23 +40,23 @@ class ActivityPubActorAction extends ManagedAction
|
|||||||
$profile = $user->getProfile();
|
$profile = $user->getProfile();
|
||||||
|
|
||||||
$res = [
|
$res = [
|
||||||
'@context' => ["https://www.w3.org/ns/activitystreams"],
|
'@context' => ["https://www.w3.org/ns/activitystreams"],
|
||||||
'id' => $profile->profileurl,
|
'id' => $profile->profileurl,
|
||||||
'type' => 'Person',
|
'type' => 'Person',
|
||||||
'following' => null,
|
'following' => null,
|
||||||
'followers' => null,
|
'followers' => null,
|
||||||
'inbox' => null,
|
'inbox' => null,
|
||||||
'outbox' => null,
|
'outbox' => null,
|
||||||
'liked' => null,
|
'liked' => null,
|
||||||
'featured' => null,
|
'featured' => null,
|
||||||
'preferredUsername' => $user->nickname,
|
'preferredUsername' => $user->nickname,
|
||||||
'name' => $user->nickname,
|
'name' => $user->nickname,
|
||||||
'summary' => $profile->bio,
|
'summary' => $profile->bio,
|
||||||
'url' => $profile->profileurl
|
'url' => $profile->profileurl
|
||||||
];
|
];
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
header('Content-Type: application/json');
|
||||||
|
|
||||||
echo json_encode($res, JSON_PRETTY_PRINT);
|
echo json_encode($res, JSON_PRETTY_PRINT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user