AP: Support of request messages

This commit is contained in:
Michael Vogel 2019-05-05 11:17:45 +02:00
parent 33931ff15e
commit 2365193691
2 changed files with 5 additions and 3 deletions

View file

@ -463,10 +463,12 @@ class Processor
$item = ['author-id' => Contact::getIdForURL($activity['actor']),
'author-link' => $activity['actor']];
$note = Strings::escapeTags(trim(defaults($activity, 'content', '')));
// Ensure that the contact has got the right network type
self::switchContact($item['author-id']);
Contact::addRelationship($owner, $contact, $item);
Contact::addRelationship($owner, $contact, $item, '', false, $note);
$cid = Contact::getIdForURL($activity['actor'], $uid);
if (empty($cid)) {
return;