Merge pull request #8816 from annando/fix-ap-receiving

Fix receiving non public posts from AP
This commit is contained in:
Tobias Diekershoff 2020-06-27 14:52:02 +02:00 committed by GitHub
commit 6a641546b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -369,7 +369,7 @@ class Processor
Logger::warning('Unknown parent item.', ['uri' => $item['thr-parent']]); Logger::warning('Unknown parent item.', ['uri' => $item['thr-parent']]);
return false; return false;
} }
if ($item_private && ($parent['private'] == Item::PRIVATE)) { if ($item_private && ($parent['private'] != Item::PRIVATE)) {
Logger::warning('Item is private but the parent is not. Dropping.', ['item-uri' => $item['uri'], 'thr-parent' => $item['thr-parent']]); Logger::warning('Item is private but the parent is not. Dropping.', ['item-uri' => $item['uri'], 'thr-parent' => $item['thr-parent']]);
return false; return false;
} }