]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Delivery.php
Merge pull request #13724 from Raroun/Fix-for-Issue-#13637---Photo-caption-prevents...
[friendica.git] / src / Protocol / ActivityPub / Delivery.php
index 5bb09dfa85c0e73e8a06e04cfa2cca5e7c9de998..04f5841c2ed9643f32e8dbc1b6038cbc1ab2f726 100644 (file)
@@ -160,7 +160,7 @@ class Delivery
                                                if (!empty($actor)) {
                                                        $drop = !ActivityPub\Transmitter::sendRelayFollow($actor);
                                                        Logger::notice('Resubscribed to relay', ['url' => $actor, 'success' => !$drop]);
-                                               } elseif ($cmd = ProtocolDelivery::DELETION) {
+                                               } elseif ($cmd == ProtocolDelivery::DELETION) {
                                                        // Remote systems not always accept our deletion requests, so we drop them if rejected.
                                                        // Situation is: In Friendica we allow the thread owner to delete foreign comments to their thread.
                                                        // Most AP systems don't allow this, so they will reject the deletion request.
@@ -208,7 +208,7 @@ class Delivery
        }
 
        /**
-        * mark or unmark the given receivers for archival upon succoess
+        * mark or unmark the given receivers for archival upon success
         *
         * @param array $receivers
         * @param boolean $success