]> git.mxchange.org Git - friendica.git/commitdiff
reverted change (which duplicated above query), thanks to @annano to point this out...
authorRoland Häder <roland@mxchange.org>
Wed, 14 Dec 2016 16:41:28 +0000 (17:41 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 14 Dec 2016 16:41:28 +0000 (17:41 +0100)
Signed-off-by: Roland Häder <roland@mxchange.org>
include/queue_fn.php

index 3030acc28db92699b55f7fc566c6b81f1283da77..f262072e6f627aa6b653dd91b59611cdca4da5ae 100644 (file)
@@ -31,9 +31,7 @@ function was_recently_delayed($cid) {
        if (dbm::is_result($r))
                return true;
 
-       // Are there queue entries that were recently added?
-       $r = q("SELECT `id` FROM `queue` WHERE `cid` = %d
-               AND `last` > UTC_TIMESTAMP() - interval 15 minute LIMIT 1",
+       $r = q("select `term-date` from contact where id = %d and `term-date` != '' and `term-date` != '0000-00-00 00:00:00' limit 1",
                intval($cid)
        );