aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-07 00:47:50 -0800
committerfriendica <info@friendica.com>2013-11-07 00:47:50 -0800
commit7381326b7a7a271da52464d15774a1309adb2bd5 (patch)
tree3427097b3dc93977f37c8f0b1b49eabc37160611 /include/poller.php
parentdf4c9171207065f32db52c910f86e5ef277eaa1f (diff)
downloadvolse-hubzilla-7381326b7a7a271da52464d15774a1309adb2bd5.tar.gz
volse-hubzilla-7381326b7a7a271da52464d15774a1309adb2bd5.tar.bz2
volse-hubzilla-7381326b7a7a271da52464d15774a1309adb2bd5.zip
provide expire feature on post and comments as well as private messages. This requires a feature setting and is currently unmaskable - if the author says it's gone, there's not a lot you can do to stop it or try and save it. It's gone.
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php
index b1f89955c..e5a274758 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -46,7 +46,13 @@ function poller_run($argv, $argc){
// expire any expired mail
q("delete from mail where expires != '0000-00-00 00:00:00' and expires < UTC_TIMESTAMP() ");
-
+
+ $r = q("select id from item where expires != '0000-00-00 00:00:00' and expires < UTC_TIMESTAMP() ");
+ if($r) {
+ require_once('include/items.php');
+ foreach($r as $rr)
+ drop_item($rr['id'],false);
+ }
// Ensure that every channel pings a directory server once a month. This way we can discover
// channels and sites that quietly vanished and prevent the directory from accumulating stale