]> git.mxchange.org Git - friendica.git/commitdiff
Store the protocol as well
authorMichael <heluecht@pirati.ca>
Fri, 28 Feb 2020 09:25:41 +0000 (09:25 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 28 Feb 2020 09:25:41 +0000 (09:25 +0000)
src/Protocol/ActivityPub/Processor.php

index 67cc2e290552c82c9e0449840c6bc286c7b7da60..4d4770c1b6c471fd1c4db7c6a35ea407ceba4e47 100644 (file)
@@ -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;