Improved handling of archive poszs

This commit is contained in:
Michael 2025-01-15 21:51:10 +00:00
parent f3106097af
commit aad362fee3

View file

@ -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 [];