]> git.mxchange.org Git - friendica.git/blobdiff - include/ostatus_conversation.php
OStatus: Attachment links are now added as enclosures
[friendica.git] / include / ostatus_conversation.php
index f40c4827b94759b8e416ce7181c9a6ce8a19b159..2670d197669a1e0bc4259fe2e7e19f29791f1736 100644 (file)
@@ -53,8 +53,9 @@ function check_conversations($override = false) {
         logger('cron_start');
 
         $start = date("Y-m-d H:i:s", time() - ($poll_timeframe * 60));
-        $conversations = q("SELECT * FROM `term` WHERE `type` = 7 AND `term` > '%s'",
+        $conversations = q("SELECT `oid`, `url` FROM `term` WHERE `type` = 7 AND `term` > '%s' GROUP BY `url` ORDER BY `term` DESC",
                                 dbesc($start));
+
         foreach ($conversations AS $conversation) {
                 $id = $conversation['oid'];
                 $url = $conversation['url'];