aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-27 00:54:34 -0700
committerfriendica <info@friendica.com>2012-03-27 00:54:34 -0700
commit20f9733250a2cbb3fa28ada40f17ec127fb55a9a (patch)
tree1ecfe03605910d6735d01e330c91673867d80656
parentdaa036e34c6db5db34fa2f45235ffbdc0f03a252 (diff)
downloadvolse-hubzilla-20f9733250a2cbb3fa28ada40f17ec127fb55a9a.tar.gz
volse-hubzilla-20f9733250a2cbb3fa28ada40f17ec127fb55a9a.tar.bz2
volse-hubzilla-20f9733250a2cbb3fa28ada40f17ec127fb55a9a.zip
don't expire filed items
-rwxr-xr-xinclude/items.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 708fd8121..2eecadad1 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2936,6 +2936,11 @@ function item_expire($uid,$days) {
foreach($r as $item) {
+ // don't expire filed items
+
+ if(strpos($item['file'],'[') !== false)
+ continue;
+
// Only expire posts, not photos and photo comments
if($expire_photos==0 && strlen($item['resource-id']))