aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-02-06 10:41:33 +0000
committerMax Kostikov <max@kostikov.co>2021-02-06 10:41:33 +0000
commitb2e4a4b2b109bf99560660d8c179db37238f998f (patch)
treea5ff3755263e7e0a08d8697192e8e290fd7e533b
parent8bb77bcfd638b3921df0092ad0e1d39113b14e57 (diff)
parente1d622c49f95aec51e5c1bd521dcd6fe2a9a5372 (diff)
downloadvolse-hubzilla-b2e4a4b2b109bf99560660d8c179db37238f998f.tar.gz
volse-hubzilla-b2e4a4b2b109bf99560660d8c179db37238f998f.tar.bz2
volse-hubzilla-b2e4a4b2b109bf99560660d8c179db37238f998f.zip
Merge branch 'dev' into 'dev'
Use datetime interval in public tag cloud query to support queueworker deduplication See merge request hubzilla/core!1908
-rw-r--r--include/taxonomy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php
index 7745b6a5b..5fa4fde3f 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -345,7 +345,7 @@ function pub_tagadelic($net,$site,$limit,$recent,$safemode,$type) {
}
if($recent)
- $sql_extra .= " and item.created > '" . datetime_convert('UTC','UTC', 'now - ' . intval($recent) . ' days ') . "' ";
+ $sql_extra .= " and item.created > NOW() - INTERVAL " . db_quoteinterval(intval($recent) . ' DAY') . " ";
if($safemode) {