Issue 8371 again: Fallback for item permissions
This commit is contained in:
parent
29bd37cda2
commit
2234a095c6
1 changed files with 5 additions and 5 deletions
10
mod/item.php
10
mod/item.php
|
@ -128,7 +128,7 @@ function item_post(App $a) {
|
||||||
$thread_parent_contact = Contact::getDetailsByURL($toplevel_item["author-link"]);
|
$thread_parent_contact = Contact::getDetailsByURL($toplevel_item["author-link"]);
|
||||||
|
|
||||||
if ($toplevel_item['id'] != $toplevel_item['parent']) {
|
if ($toplevel_item['id'] != $toplevel_item['parent']) {
|
||||||
$toplevel_item = Item::selectFirst(Item::ITEM_FIELDLIST, ['id' => $toplevel_item['parent']]);
|
$toplevel_item = Item::selectFirst([], ['id' => $toplevel_item['parent']]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -298,10 +298,10 @@ function item_post(App $a) {
|
||||||
$network = $toplevel_item['network'];
|
$network = $toplevel_item['network'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$str_contact_allow = $toplevel_item['allow_cid'];
|
$str_contact_allow = $toplevel_item['allow_cid'] ?? '';
|
||||||
$str_group_allow = $toplevel_item['allow_gid'];
|
$str_group_allow = $toplevel_item['allow_gid'] ?? '';
|
||||||
$str_contact_deny = $toplevel_item['deny_cid'];
|
$str_contact_deny = $toplevel_item['deny_cid'] ?? '';
|
||||||
$str_group_deny = $toplevel_item['deny_gid'];
|
$str_group_deny = $toplevel_item['deny_gid'] ?? '';
|
||||||
$private = $toplevel_item['private'];
|
$private = $toplevel_item['private'];
|
||||||
|
|
||||||
$wall = $toplevel_item['wall'];
|
$wall = $toplevel_item['wall'];
|
||||||
|
|
Loading…
Reference in a new issue