From: Alexandre Alapetite Date: Tue, 11 Apr 2017 22:19:05 +0000 (+0200) Subject: Fix ostatus bug related to only_full_group_by X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dbbe6efd27cde052402e1d9995f77feb95d1c265;p=friendica.git Fix ostatus bug related to only_full_group_by https://github.com/friendica/friendica/issues/3322 --- diff --git a/include/ostatus.php b/include/ostatus.php index e0b33a1a47..ee405397cc 100644 --- a/include/ostatus.php +++ b/include/ostatus.php @@ -720,7 +720,7 @@ class ostatus { $conversations = q("SELECT `term`.`oid`, `term`.`url`, `term`.`uid` FROM `term` STRAIGHT_JOIN `thread` ON `thread`.`iid` = `term`.`oid` AND `thread`.`uid` = `term`.`uid` WHERE `term`.`type` = 7 AND `term`.`term` > '%s' AND `thread`.`mention` - GROUP BY `term`.`url`, `term`.`uid` ORDER BY `term`.`term` DESC", dbesc($start)); + GROUP BY `term`.`url`, `term`.`uid`, `term`.`oid`, `term`.`term` ORDER BY `term`.`term` DESC", dbesc($start)); } else { $conversations = q("SELECT `oid`, `url`, `uid` FROM `term` WHERE `type` = 7 AND `term` > '%s'