aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-12-29 17:18:04 +0100
committerMario Vavti <mario@mariovavti.com>2024-12-29 17:18:04 +0100
commit51745d3652336ffe7daf8e2a37771ba1328386fb (patch)
tree37c3d9b208f746dbc53310d833a008484b747a0f
parent762d402dea361ce6cae287a544e3b9e0e99d2836 (diff)
parent3ebbb91ae9cff5c97695d2cd79118dd9770a84d9 (diff)
downloadvolse-hubzilla-51745d3652336ffe7daf8e2a37771ba1328386fb.tar.gz
volse-hubzilla-51745d3652336ffe7daf8e2a37771ba1328386fb.tar.bz2
volse-hubzilla-51745d3652336ffe7daf8e2a37771ba1328386fb.zip
Merge branch 'dev'
-rw-r--r--Zotlabs/Daemon/Importdoc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Daemon/Importdoc.php b/Zotlabs/Daemon/Importdoc.php
index bb30c4373..fd5434be5 100644
--- a/Zotlabs/Daemon/Importdoc.php
+++ b/Zotlabs/Daemon/Importdoc.php
@@ -43,14 +43,14 @@ class Importdoc {
}
// remove old files that weren't updated (indicates they were most likely deleted).
- $i = q("select * from item where item_type = 5 and edited < %s - INTERVAL %s",
+ $i = q("select id, uid from item where item_type = 5 and edited < %s - INTERVAL %s",
db_utcnow(),
db_quoteinterval('14 DAY', true)
);
if ($i) {
foreach ($i as $iv) {
- drop_item($iv['id'], DROPITEM_NORMAL, true);
+ drop_item($iv['id'], DROPITEM_NORMAL, uid: $iv['uid']);
}
}
}