From bcb3a819889da8e1834fc812067b9e3d4fdf9355 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 28 Feb 2020 09:25:41 +0000 Subject: [PATCH] Store the protocol as well --- src/Protocol/ActivityPub/Processor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5