]> git.mxchange.org Git - friendica.git/commitdiff
Fix: The field "contact-id" now contains the correct contact id again
authorMichael <heluecht@pirati.ca>
Tue, 30 Jul 2019 13:08:14 +0000 (13:08 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 30 Jul 2019 13:08:14 +0000 (13:08 +0000)
src/Protocol/ActivityPub/Processor.php

index e85caa7e4c1a43939f9f8dc1cb98946ae2630773..7639d0f2a325d97ee6dc3ea6a9f2fb48a4f0d6b4 100644 (file)
@@ -415,9 +415,7 @@ class Processor
 
                        if ($isForum) {
                                $item['contact-id'] = Contact::getIdForURL($activity['actor'], $receiver, true);
-                       }
-
-                       if (empty($item['contact-id'])) {
+                       } else {
                                $item['contact-id'] = Contact::getIdForURL($activity['author'], $receiver, true);
                        }