Update per the master branch

This commit is contained in:
Diogo Cordeiro 2018-05-05 01:31:25 +01:00
parent aea8915903
commit 3161b62b5d

View File

@ -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(),