AP: Parsing of messages from Pleroma should work now again

This commit is contained in:
Michael 2019-04-26 06:17:37 +00:00
parent dc154ac07d
commit eef85584c2
4 changed files with 43 additions and 39 deletions

View file

@ -118,7 +118,7 @@ class APContact extends BaseObject
$apcontact = [];
$apcontact['url'] = $compacted['@id'];
$apcontact['uuid'] = JsonLD::fetchElement($compacted, 'diaspora:guid');
$apcontact['uuid'] = JsonLD::fetchElement($compacted, 'diaspora:guid', '@value');
$apcontact['type'] = str_replace('as:', '', JsonLD::fetchElement($compacted, '@type'));
$apcontact['following'] = JsonLD::fetchElement($compacted, 'as:following', '@id');
$apcontact['followers'] = JsonLD::fetchElement($compacted, 'as:followers', '@id');