mirror of
https://github.com/friendica/friendica
synced 2025-03-22 01:42:08 +00:00
Improved handling of archive poszs
This commit is contained in:
parent
f3106097af
commit
aad362fee3
1 changed files with 4 additions and 0 deletions
|
@ -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 [];
|
||||||
|
|
Loading…
Add table
Reference in a new issue