From f4b2177923d0f4520129399180d9b7b03e177247 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 10 Dec 2020 21:10:15 +0100 Subject: [PATCH] Update 'link/Mod_Link.php' 5.0.4 --- link/Mod_Link.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/link/Mod_Link.php b/link/Mod_Link.php index ce3d547..4bbf708 100644 --- a/link/Mod_Link.php +++ b/link/Mod_Link.php @@ -173,11 +173,11 @@ class Link extends \Zotlabs\Web\Controller { $simple_update = ''; if($static && $simple_update) - $simple_update .= " and item_thread_top = 0 and author_xchan = '" . protect_sprintf(get_observer_hash()) . "' "; + $simple_update = " AND (( item_unseen = 1 AND item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) OR item.changed > '" . datetime_convert('UTC','UTC',$_SESSION['loadtime']) . "' ) "; if((! $update) && (! $load)) { - $static = ((local_channel()) ? channel_manual_conv_update(local_channel()) : 1); + // $static = ((local_channel()) ? channel_manual_conv_update(local_channel()) : 1); // if the target item is not a post (eg a like) we want to address its thread parent // $mid = ((($target_item['verb'] == ACTIVITY_LIKE) || ($target_item['verb'] == ACTIVITY_DISLIKE)) ? $target_item['thr_parent'] : $target_item['mid']);