From ba0c877ffce6215717bced089aa529d7eee6734d Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 29 Sep 2022 16:56:54 +0200 Subject: fix menu item display issue --- Zotlabs/Lib/ThreadItem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Zotlabs/Lib') diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php index 0a7e40e0e..8cc0f6aa5 100644 --- a/Zotlabs/Lib/ThreadItem.php +++ b/Zotlabs/Lib/ThreadItem.php @@ -265,7 +265,7 @@ class ThreadItem { $this->check_wall_to_wall(); if($this->is_toplevel()) { - if(($conv->get_profile_owner() === local_channel()) || (local_channel() && App::$module === 'pubstream')) { + if((local_channel() && $conv->get_profile_owner() === local_channel()) || (local_channel() && App::$module === 'pubstream')) { $star = [ 'toggle' => t("Toggle Star Status"), 'isstarred' => ((intval($item['item_starred'])) ? true : false), @@ -286,7 +286,7 @@ class ThreadItem { $tagger = []; // FIXME - check this permission - if($conv->get_profile_owner() == local_channel()) { + if(local_channel() && $conv->get_profile_owner() == local_channel()) { /* disable until we agree on how to implemnt this in zot6/activitypub $tagger = array( 'tagit' => t("Add Tag"), -- cgit v1.2.3