]> git.mxchange.org Git - friendica.git/blobdiff - include/queue_fn.php
allow themes to decide where live updates appear
[friendica.git] / include / queue_fn.php
index 613571c84792bb5a751dac1ded3455de9bc2a3be..e43912431c762fff263432701f0c02f914457df8 100644 (file)
@@ -21,7 +21,16 @@ function was_recently_delayed($cid) {
                and last > UTC_TIMESTAMP() - interval 15 minute limit 1",
                intval($cid)
        );
+       if(count($r))
+               return true;
 
+       $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)
+       );
+       if(count($r))
+               return true;
+
+       return false;
 }