X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Facl.php;h=dd5dd90281d0140782d45195dead24039635b8ae;hb=0e8fa341561c7fafb962564d4d46988298b84671;hp=7f171568967ef204746bb842aa90328a18ead336;hpb=a4607f8d1ce10bc27c9fc771dcb74cc32bcb6840;p=friendica.git diff --git a/mod/acl.php b/mod/acl.php index 7f17156896..dd5dd90281 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -241,7 +241,7 @@ function acl_content(App $a) if ($conv_id) { // In multi threaded posts the conv_id is not the parent of the whole thread - $parent_item = dba::selectFirst('item', ['parent'], ['id' => $conv_id]); + $parent_item = Item::selectFirst(['parent'], ['id' => $conv_id]); if (DBM::is_result($parent_item)) { $conv_id = $parent_item['parent']; } @@ -258,9 +258,9 @@ function acl_content(App $a) $condition = ["`parent` = ?", $conv_id]; $params = ['order' => ['author-name' => true]]; - $authors = Item::select(local_user(), ['author-link'], $condition, $params); + $authors = Item::selectForUser(local_user(), ['author-link'], $condition, $params); $item_authors = []; - while ($author = dba::fetch($authors)) { + while ($author = Item::fetch($authors)) { $item_authors[$author['author-link']] = $author['author-link']; } dba::close($authors);