]> git.mxchange.org Git - friendica.git/commitdiff
Improved handling of archive poszs
authorMichael <heluecht@pirati.ca>
Wed, 15 Jan 2025 21:51:10 +0000 (21:51 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 15 Jan 2025 21:51:10 +0000 (21:51 +0000)
src/Protocol/ATProtocol/Processor.php

index aa57299abf1178ac896dcaedd454fc8b3947130a..1a9286ee45a564ff3c9525c9c0c4277ba598ec55 100755 (executable)
@@ -354,6 +354,10 @@ class Processor
                        'source'        => json_encode($data),
                ];
 
+               if ((time() - strtotime($item['created'])) > 600) {
+                       $item['received'] = $item['created'];
+               }
+
                if ($this->postExists($item['uri'], [$uid])) {
                        $this->logger->info('Post already exists for user', ['uri' => $item['uri'], 'uid' => $uid]);
                        return [];