]> git.mxchange.org Git - friendica.git/commitdiff
Another GROUP BY fix for MySQL
authorAlexandre Alapetite <alexandre@alapetite.fr>
Tue, 11 Apr 2017 23:06:08 +0000 (01:06 +0200)
committerAlexandre Alapetite <alexandre@alapetite.fr>
Tue, 11 Apr 2017 23:06:08 +0000 (01:06 +0200)
https://github.com/friendica/friendica/issues/3322

include/ostatus.php

index ee405397cc1216f1f667acccb6fee546d7781da1..e0ed1df19a9f2a8123cddaa35978186e61432cb6 100644 (file)
@@ -724,7 +724,7 @@ class ostatus {
                } else {
                        $conversations = q("SELECT `oid`, `url`, `uid` FROM `term`
                                                WHERE `type` = 7 AND `term` > '%s'
-                                               GROUP BY `url`, `uid` ORDER BY `term` DESC", dbesc($start));
+                                               GROUP BY `url`, `uid`, `oid`, `term` ORDER BY `term` DESC", dbesc($start));
                }
 
                foreach ($conversations AS $conversation) {