diff options
author | Mario Vavti <mario@mariovavti.com> | 2024-12-29 17:17:22 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2024-12-29 17:17:22 +0100 |
commit | 3ebbb91ae9cff5c97695d2cd79118dd9770a84d9 (patch) | |
tree | ceec2dce4307886b6b65746f972ab7b97be633ef /Zotlabs | |
parent | 051cef79fc602a0aae1278025171b7c29c400136 (diff) | |
download | volse-hubzilla-3ebbb91ae9cff5c97695d2cd79118dd9770a84d9.tar.gz volse-hubzilla-3ebbb91ae9cff5c97695d2cd79118dd9770a84d9.tar.bz2 volse-hubzilla-3ebbb91ae9cff5c97695d2cd79118dd9770a84d9.zip |
pass uid to drop_item() to ensure we will have permission to actually drop the item
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Daemon/Importdoc.php | 4 |
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']); } } } |