diff options
author | friendica <info@friendica.com> | 2013-05-23 17:24:15 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-23 17:24:15 -0700 |
commit | c721c3a20e17783835672365ce56fe64876002c7 (patch) | |
tree | 23f3c5436e0aaab35fd5510b7bbb135f0dc5a46f /include/poller.php | |
parent | bb31e6bd6a7ad9c24d3537719a656c86de0e0ee5 (diff) | |
download | volse-hubzilla-c721c3a20e17783835672365ce56fe64876002c7.tar.gz volse-hubzilla-c721c3a20e17783835672365ce56fe64876002c7.tar.bz2 volse-hubzilla-c721c3a20e17783835672365ce56fe64876002c7.zip |
implement time travelling posts
Diffstat (limited to 'include/poller.php')
-rw-r--r-- | include/poller.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/poller.php b/include/poller.php index 33e882735..43c7b497b 100644 --- a/include/poller.php +++ b/include/poller.php @@ -38,6 +38,16 @@ function poller_run($argv, $argc){ intval(ACCOUNT_EXPIRED) ); + // publish any applicable items that were set to be published in the future + // (time travel posts) + + q("update item set item_restrict = ( item_restrict ^ %d ) + where ( item_restrict & %d ) and created <= UTC_TIMESTAMP() ", + intval(ITEM_DELAYED_PUBLISH), + intval(ITEM_DELAYED_PUBLISH) + ); + + $abandon_days = intval(get_config('system','account_abandon_days')); if($abandon_days < 1) $abandon_days = 0; |