From: Michael Date: Tue, 30 Jun 2020 05:49:22 +0000 (+0000) Subject: Fix database error ""Unknown column 'parent-item.author-id'" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8f1635d8fd565354e77b58f94cea4e44d467b048;p=friendica.git Fix database error ""Unknown column 'parent-item.author-id'" --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 887072eb85..636a98ae4f 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -787,7 +787,7 @@ class Item $joins .= " LEFT JOIN `permissionset` ON `permissionset`.`id` = `item`.`psid`"; } - if ((strpos($sql_commands, "`parent-item`.") !== false) || (strpos($sql_commands, "`parent-author`.") !== false)) { + if ((strpos($sql_commands, "`parent-item`.") !== false) || (strpos($sql_commands, "`parent-item-author`.") !== false)) { $joins .= " STRAIGHT_JOIN `item` AS `parent-item` ON `parent-item`.`id` = `item`.`parent`"; }