aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-09-29 16:56:54 +0200
committerMario Vavti <mario@mariovavti.com>2022-09-29 16:56:54 +0200
commitba0c877ffce6215717bced089aa529d7eee6734d (patch)
tree4aa3ce129c326ca4bfe01623a1cd5f77c0e729b3 /Zotlabs
parent72520a2dd9cddbf4176f6d6de429961f29aad4df (diff)
downloadvolse-hubzilla-ba0c877ffce6215717bced089aa529d7eee6734d.tar.gz
volse-hubzilla-ba0c877ffce6215717bced089aa529d7eee6734d.tar.bz2
volse-hubzilla-ba0c877ffce6215717bced089aa529d7eee6734d.zip
fix menu item display issue
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/ThreadItem.php4
1 files changed, 2 insertions, 2 deletions
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"),