mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 00:04:27 +02:00
Merge pull request #14703 from annando/atp-archive
Improved handling of archive posts
This commit is contained in:
commit
cd79d26ed5
1 changed files with 6 additions and 2 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
Add a link
Reference in a new issue