aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-09 15:58:26 +0000
committerMax Kostikov <max@kostikov.co>2021-03-09 15:58:26 +0000
commit91ebfbc2153a89ba0bc7023b64a58d99d957f68f (patch)
tree5b88fd2e5e5bcba65489a82113d132334dbea65b
parentee40cb337a956ab9ccf0b19fdbb68f8d8b2df522 (diff)
downloadvolse-hubzilla-91ebfbc2153a89ba0bc7023b64a58d99d957f68f.tar.gz
volse-hubzilla-91ebfbc2153a89ba0bc7023b64a58d99d957f68f.tar.bz2
volse-hubzilla-91ebfbc2153a89ba0bc7023b64a58d99d957f68f.zip
Check if we have an observer xchan
-rw-r--r--Zotlabs/Widget/Pinned.php2
1 files changed, 1 insertions, 1 deletions
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']);