]> git.mxchange.org Git - friendica.git/commitdiff
don't expire filed items
authorfriendica <info@friendica.com>
Tue, 27 Mar 2012 07:54:34 +0000 (00:54 -0700)
committerfriendica <info@friendica.com>
Tue, 27 Mar 2012 07:54:34 +0000 (00:54 -0700)
include/items.php

index 708fd81216d7300305be97d45f942da206359d88..2eecadad108530e0b01b6c000f8b58dd3dbda914 100755 (executable)
@@ -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']))