aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Like.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-07-10 20:18:33 -0700
committerzotlabs <mike@macgirvin.com>2017-07-10 20:18:33 -0700
commit2d63bbb91e97d3a54440564620ef3093ecbe71fb (patch)
tree2f0828a83cfd34cb1303d18034e1c9e1d197c7be /Zotlabs/Module/Like.php
parente3734328eb7393bbdb76ce195d735ab48aa87324 (diff)
downloadvolse-hubzilla-2d63bbb91e97d3a54440564620ef3093ecbe71fb.tar.gz
volse-hubzilla-2d63bbb91e97d3a54440564620ef3093ecbe71fb.tar.bz2
volse-hubzilla-2d63bbb91e97d3a54440564620ef3093ecbe71fb.zip
prevent expiration of conversations you are involved with - allows you to find your own comments months from now
Diffstat (limited to 'Zotlabs/Module/Like.php')
-rw-r--r--Zotlabs/Module/Like.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Like.php b/Zotlabs/Module/Like.php
index 71336e8f3..c995079ce 100644
--- a/Zotlabs/Module/Like.php
+++ b/Zotlabs/Module/Like.php
@@ -504,6 +504,11 @@ class Like extends \Zotlabs\Web\Controller {
$post = item_store($arr);
$post_id = $post['item_id'];
+
+ // save the conversation from expiration
+
+ if(local_channel() && array_key_exists('item',$post) && (intval($post['item']['id']) != intval($post['item']['parent'])))
+ retain_item($post['item']['parent']);
$arr['id'] = $post_id;