prevent expiration of conversations you are involved with - allows you to find your own comments months from now

This commit is contained in:
zotlabs
2017-07-10 20:18:33 -07:00
parent e3734328eb
commit 2d63bbb91e
6 changed files with 36 additions and 4 deletions

View File

@@ -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;