Update per the master branch
This commit is contained in:
parent
aea8915903
commit
3161b62b5d
@ -35,6 +35,7 @@ class Activitypub_profile extends Managed_DataObject
|
|||||||
|
|
||||||
public static function profileToObject($profile)
|
public static function profileToObject($profile)
|
||||||
{
|
{
|
||||||
|
$url = $profile->getURL ();
|
||||||
$res = [
|
$res = [
|
||||||
'@context' => [
|
'@context' => [
|
||||||
"https://www.w3.org/ns/activitystreams",
|
"https://www.w3.org/ns/activitystreams",
|
||||||
@ -49,8 +50,8 @@ class Activitypub_profile extends Managed_DataObject
|
|||||||
'inbox' => "{$url}/inbox.json",
|
'inbox' => "{$url}/inbox.json",
|
||||||
'outbox' => "{$url}/outbox.json",
|
'outbox' => "{$url}/outbox.json",
|
||||||
'display_name' => $profile->getFullname(),
|
'display_name' => $profile->getFullname(),
|
||||||
'followers' => "{$url}/subscribers",
|
'followers' => "{$url}/followers.json",
|
||||||
'following' => "{$url}/subscriptions",
|
'following' => "{$url}/following.json",
|
||||||
'liked' => "{$url}/liked.json",
|
'liked' => "{$url}/liked.json",
|
||||||
'liked_count' => Fave::countByProfile ($profile),
|
'liked_count' => Fave::countByProfile ($profile),
|
||||||
'summary' => $profile->getDescription(),
|
'summary' => $profile->getDescription(),
|
||||||
|
Reference in New Issue
Block a user