mirror of
https://github.com/friendica/friendica
synced 2025-05-09 23:44:09 +02:00
Issue 11513: Non public replies on public posts should now work
This commit is contained in:
parent
60c6ab08c1
commit
df6cda8a4d
5 changed files with 27 additions and 16 deletions
|
@ -717,7 +717,12 @@ class Transmitter
|
|||
}
|
||||
|
||||
if (!empty($item['parent'])) {
|
||||
$parents = Post::select(['id', 'author-link', 'owner-link', 'gravity', 'uri'], ['parent' => $item['parent']], ['order' => ['id']]);
|
||||
if ($item['private'] == Item::PRIVATE) {
|
||||
$condition = ['parent' => $item['parent'], 'uri-id' => $item['thr-parent-id']];
|
||||
} else {
|
||||
$condition = ['parent' => $item['parent']];
|
||||
}
|
||||
$parents = Post::select(['id', 'author-link', 'owner-link', 'gravity', 'uri'], $condition, ['order' => ['id']]);
|
||||
while ($parent = Post::fetch($parents)) {
|
||||
if ($parent['gravity'] == Item::GRAVITY_PARENT) {
|
||||
$profile = APContact::getByURL($parent['owner-link'], false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue