From: Michael Date: Fri, 28 Feb 2020 09:25:41 +0000 (+0000) Subject: Store the protocol as well X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bcb3a819889da8e1834fc812067b9e3d4fdf9355;p=friendica.git Store the protocol as well --- diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index 67cc2e2905..4d4770c1b6 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -448,8 +448,9 @@ class Processor $item['owner-link'] = $activity['actor']; $item['owner-id'] = Contact::getIdForURL($activity['actor'], 0, true); - if (!empty($activity['raw'])) { + if (!empty($activity['raw']) && isset($activity['protocol'])) { $item['source'] = $activity['raw']; + $item['protocol'] = $activity['protocol']; } $isForum = false;