diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2014-03-15 21:54:10 +0100 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2014-03-15 21:54:10 +0100 |
commit | 521b091779ddb2a4ca58c28af9312cb5bcf2dd9f (patch) | |
tree | 27d854c5b8668470a3005425e428b8c115550aad /mod/filer.php | |
parent | f0736fc955e69d4650f95dc937f26be222967199 (diff) | |
parent | 3cb179aff19d803b91261e410c50b36e4bae1246 (diff) | |
download | volse-hubzilla-521b091779ddb2a4ca58c28af9312cb5bcf2dd9f.tar.gz volse-hubzilla-521b091779ddb2a4ca58c28af9312cb5bcf2dd9f.tar.bz2 volse-hubzilla-521b091779ddb2a4ca58c28af9312cb5bcf2dd9f.zip |
merge
Diffstat (limited to 'mod/filer.php')
-rw-r--r-- | mod/filer.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/filer.php b/mod/filer.php index adc6245e1..3340fc999 100644 --- a/mod/filer.php +++ b/mod/filer.php @@ -19,6 +19,20 @@ function filer_content(&$a) { if($item_id && strlen($term)){ // file item store_item_tag(local_user(),$item_id,TERM_OBJ_POST,TERM_FILE,$term,''); + + // protect the entire conversation from periodic expiration + + $r = q("select parent from item where id = %d and uid = %d limit 1", + intval($item_id), + intval(local_user()) + ); + if($r) { + $x = q("update item set item_flags = ( item_flags | %d ) where id = %d and uid = %d limit 1", + intval(ITEM_RETAINED), + intval($r[0]['parent']), + intval(local_user()) + ); + } } else { $filetags = array(); |