]> git.mxchange.org Git - friendica.git/commitdiff
Bluesky: Update actors regularly
authorMichael <heluecht@pirati.ca>
Thu, 17 Apr 2025 20:13:03 +0000 (20:13 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 17 Apr 2025 20:13:03 +0000 (20:13 +0000)
src/Protocol/ATProtocol/Processor.php

index d7a26f78cf5176420b44a926787a0bb2e71e4eee..0d7505f6a8d528de69b776ccd571ea5f1c45fce7 100755 (executable)
@@ -327,7 +327,7 @@ class Processor
 
        private function getHeaderFromJetstream(stdClass $data, int $uid, int $protocol = Conversation::PARCEL_JETSTREAM): array
        {
-               $contact = $this->actor->getContactByDID($data->did, $uid, 0);
+               $contact = $this->actor->getContactByDID($data->did, $uid, 0, true);
                if (empty($contact)) {
                        $this->logger->info('Contact not found for user', ['did' => $data->did, 'uid' => $uid]);
                        return [];
@@ -392,7 +392,7 @@ class Processor
                if (empty($post->author) || empty($post->cid) || empty($parts->rkey)) {
                        return [];
                }
-               $contact = $this->actor->getContactByDID($post->author->did, $uid, 0);
+               $contact = $this->actor->getContactByDID($post->author->did, $uid, 0, true);
                if (empty($contact)) {
                        $this->logger->info('Contact not found for user', ['did' => $post->author->did, 'uid' => $uid]);
                        return [];