Merge pull request #14703 from annando/atp-archive

Improved handling of archive posts
This commit is contained in:
Tobias Diekershoff 2025-01-16 06:36:09 +01:00 committed by GitHub
commit cd79d26ed5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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