]> git.mxchange.org Git - friendica.git/blobdiff - src/Protocol/ActivityPub/Receiver.php
Don't transmit to archived inboxes
[friendica.git] / src / Protocol / ActivityPub / Receiver.php
index 3c0f4862e6d212475771012f3a4d62ce23b30847..d1426ff5aef2400b9871e577674f636ba4a9fa9b 100644 (file)
@@ -104,6 +104,8 @@ class Receiver
                        return;
                }
 
+               APContact::unMarkForArchival($apcontact);
+
                $http_signer = HTTPSignature::getSigner($body, $header);
                if (empty($http_signer)) {
                        Logger::warning('Invalid HTTP signature, message will be discarded.');
@@ -233,6 +235,7 @@ class Receiver
 
                $profile = APContact::getByURL($object_id);
                if (!empty($profile['type'])) {
+                       APContact::unMarkForArchival($profile);
                        return 'as:' . $profile['type'];
                }