mirror of
https://github.com/friendica/friendica
synced 2025-09-05 09:08:32 +02:00
Issue 6167: Don't publish non visible content
This commit is contained in:
parent
542e363a49
commit
4ff837488f
4 changed files with 3 additions and 8 deletions
|
@ -60,7 +60,7 @@ class Delivery extends BaseObject
|
|||
}
|
||||
$parent_id = intval($item['parent']);
|
||||
|
||||
$condition = ['id' => [$target_id, $parent_id], 'moderated' => false];
|
||||
$condition = ['id' => [$target_id, $parent_id], 'visible' => true, 'moderated' => false];
|
||||
$params = ['order' => ['id']];
|
||||
$itemdata = Model\Item::select([], $condition, $params);
|
||||
|
||||
|
|
|
@ -99,11 +99,6 @@ class Notifier
|
|||
return;
|
||||
}
|
||||
|
||||
// Issue 6167: We don't distribute image uploads
|
||||
if ($target_item['post-type'] == Item::PT_IMAGE) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!empty($target_item['contact-uid'])) {
|
||||
$uid = $target_item['contact-uid'];
|
||||
} elseif (!empty($target_item['uid'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue