Added missing 'private' field, see Processor::processContent() where it is needed

This commit is contained in:
Roland Häder 2022-08-04 10:49:39 +02:00
parent 196a1de7f2
commit 8105668caf
No known key found for this signature in database
GPG key ID: C82EDE5DDFA0BA77

View file

@ -200,7 +200,7 @@ class Processor
*/ */
public static function updateItem(array $activity) public static function updateItem(array $activity)
{ {
$item = Post::selectFirst(['uri', 'uri-id', 'thr-parent', 'gravity', 'post-type'], ['uri' => $activity['id']]); $item = Post::selectFirst(['uri', 'uri-id', 'thr-parent', 'gravity', 'post-type', 'private'], ['uri' => $activity['id']]);
if (!DBA::isResult($item)) { if (!DBA::isResult($item)) {
Logger::warning('No existing item, item will be created', ['uri' => $activity['id']]); Logger::warning('No existing item, item will be created', ['uri' => $activity['id']]);
$item = self::createItem($activity); $item = self::createItem($activity);