aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-07-23 08:44:18 +0000
committerMario <mario@mariovavti.com>2024-07-23 08:44:18 +0000
commitae140465d7861b9400b053afddaefc9b1b70d40b (patch)
tree7ebc01a0f0fda0de606856b247ba7b08d86f1cd1 /Zotlabs
parent475cbf65100196e841735e9be3bcc3a2cd3d46b2 (diff)
downloadvolse-hubzilla-ae140465d7861b9400b053afddaefc9b1b70d40b.tar.gz
volse-hubzilla-ae140465d7861b9400b053afddaefc9b1b70d40b.tar.bz2
volse-hubzilla-ae140465d7861b9400b053afddaefc9b1b70d40b.zip
only allow repeats if we are the profile owner and minor code simplification
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 d1206c604..6081ca272 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -123,13 +123,13 @@ class ThreadItem {
$locktype = 0;
}
- $shareable = ((($conv->get_profile_owner() == local_channel() && local_channel()) && (intval($item['item_private']) === 0)) ? true : false);
+ $shareable = ((local_channel() && $conv->get_profile_owner() == local_channel()) && (intval($item['item_private']) === 0));
// allow an exemption for sharing stuff from your private feeds
if($item['author']['xchan_network'] === 'rss')
$shareable = true;
- $repeatable = (intval($item['item_private']) === 0 && in_array($item['author']['xchan_network'], ['zot6', 'activitypub']));
+ $repeatable = ((local_channel() && $conv->get_profile_owner() == local_channel()) && intval($item['item_private']) === 0 && in_array($item['author']['xchan_network'], ['zot6', 'activitypub']));
// @fixme
// Have recently added code to properly handle polls in group reshares by redirecting all of the poll responses to the group.