Fixes several database errors, removes "relation" handling

This commit is contained in:
Michael 2021-02-25 05:13:49 +00:00
parent de90f5351f
commit 99a145f7cf
11 changed files with 39 additions and 176 deletions

View file

@ -332,7 +332,7 @@ class Community extends BaseModule
$params = ['order' => ['commented' => true], 'limit' => $itemspage];
if (!empty($item_id)) {
$condition[0] .= " AND `iid` = ?";
$condition[0] .= " AND `id` = ?";
$condition[] = $item_id;
} else {
if (local_user() && !empty($_REQUEST['no_sharer'])) {