From 91ebfbc2153a89ba0bc7023b64a58d99d957f68f Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Tue, 9 Mar 2021 15:58:26 +0000 Subject: Check if we have an observer xchan --- Zotlabs/Widget/Pinned.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zotlabs/Widget/Pinned.php b/Zotlabs/Widget/Pinned.php index 0a7806908..1cd4dbc15 100644 --- a/Zotlabs/Widget/Pinned.php +++ b/Zotlabs/Widget/Pinned.php @@ -43,7 +43,7 @@ class Pinned { $midb64 = 'b64.' . base64url_encode($item['mid']); - if(in_array($observer['xchan_hash'], get_pconfig($item['uid'], 'pinned_hide', $midb64, []))) + if(isset($observer['xchan_hash']) && in_array($observer['xchan_hash'], get_pconfig($item['uid'], 'pinned_hide', $midb64, []))) continue; $author = channelx_by_hash($item['author_xchan']); -- cgit v1.2.3