Prevent "No post-content stored"
This commit is contained in:
parent
56a77f5275
commit
998f127cb8
2 changed files with 2 additions and 8 deletions
|
@ -1053,10 +1053,8 @@ class Item
|
||||||
$notify_type = Delivery::POST;
|
$notify_type = Delivery::POST;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!in_array($item['verb'], self::ACTIVITIES) && !Post\Content::insert($item['uri-id'], $item)) {
|
if (!in_array($item['verb'], self::ACTIVITIES)) {
|
||||||
// This shouldn't happen
|
Post\Content::insert($item['uri-id'], $item);
|
||||||
Logger::warning('No post-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'];
|
$body = $item['body'];
|
||||||
|
|
|
@ -44,10 +44,6 @@ class Content
|
||||||
throw new BadMethodCallException('Empty URI_id');
|
throw new BadMethodCallException('Empty URI_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DBA::exists('post-content', ['uri-id' => $uri_id])) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$fields = DBStructure::getFieldsForTable('post-content', $data);
|
$fields = DBStructure::getFieldsForTable('post-content', $data);
|
||||||
|
|
||||||
// Additionally assign the key fields
|
// Additionally assign the key fields
|
||||||
|
|
Loading…
Reference in a new issue