]> git.mxchange.org Git - friendica.git/commitdiff
Fix ostatus bug related to only_full_group_by
authorAlexandre Alapetite <alexandre@alapetite.fr>
Tue, 11 Apr 2017 22:19:05 +0000 (00:19 +0200)
committerAlexandre Alapetite <alexandre@alapetite.fr>
Tue, 11 Apr 2017 22:19:05 +0000 (00:19 +0200)
https://github.com/friendica/friendica/issues/3322

include/ostatus.php

index e0b33a1a474839338927c95ed2bc3c228a2d03b9..ee405397cc1216f1f667acccb6fee546d7781da1 100644 (file)
@@ -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'