mirror of
https://github.com/friendica/friendica
synced 2024-12-23 06:00:15 +00:00
Avoid duplicate postings
This commit is contained in:
parent
96147d331b
commit
a7f6775f45
1 changed files with 5 additions and 0 deletions
|
@ -1834,6 +1834,11 @@ class Item
|
|||
|
||||
if (!in_array($item['verb'], self::ACTIVITIES)) {
|
||||
$item['icid'] = self::insertContent($item);
|
||||
if (empty($item['icid'])) {
|
||||
// This most likely happens when identical posts arrives from different sources at the same time
|
||||
Logger::warning('No content stored, quitting', ['guid' => $item['guid'], 'uri-id' => $item['uri-id'], 'causer-id' => ($item['causer-id'] ?? 0), 'post-type' => $item['post-type'], 'network' => $item['network']]);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
$body = $item['body'];
|
||||
|
|
Loading…
Reference in a new issue