From 03475bfb15637d61698e1b3350f7b98654637fc6 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 26 Sep 2022 08:31:57 +0000 Subject: =?UTF-8?q?=C3=83fix=20regression?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zotlabs/Widget/Cover_photo.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Widget') diff --git a/Zotlabs/Widget/Cover_photo.php b/Zotlabs/Widget/Cover_photo.php index 11d9c4715..8d42becb5 100644 --- a/Zotlabs/Widget/Cover_photo.php +++ b/Zotlabs/Widget/Cover_photo.php @@ -34,7 +34,10 @@ class Cover_photo { if(! array_key_exists('channels_visited',$_SESSION)) { $_SESSION['channels_visited'] = []; } - $_SESSION['channels_visited'][] = $channel_id; + + if (!in_array($channel_id, $_SESSION['channels_visited'])) { + $_SESSION['channels_visited'][] = $channel_id; + } $channel = channelx_by_n($channel_id); -- cgit v1.2.3