aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/ThreadItem.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-12-20 12:15:42 +0000
committerMario <mario@mariovavti.com>2023-12-20 12:15:42 +0000
commit4761857157281046c96a7bbf0fe87491bafd4696 (patch)
treed69a0ac807db498e8ff46a0137ce1d1db7e81e9e /Zotlabs/Lib/ThreadItem.php
parent3aefe23184c25c1fc0865313d13902cabfb934d3 (diff)
downloadvolse-hubzilla-4761857157281046c96a7bbf0fe87491bafd4696.tar.gz
volse-hubzilla-4761857157281046c96a7bbf0fe87491bafd4696.tar.bz2
volse-hubzilla-4761857157281046c96a7bbf0fe87491bafd4696.zip
Revert "changelog"
This reverts commit 3aefe23184c25c1fc0865313d13902cabfb934d3.
Diffstat (limited to 'Zotlabs/Lib/ThreadItem.php')
-rw-r--r--Zotlabs/Lib/ThreadItem.php18
1 files changed, 8 insertions, 10 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 927da5434..037ddb19e 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -121,9 +121,7 @@ class ThreadItem {
$locktype = 0;
}
- $shareable = ((($conv->get_profile_owner() == local_channel() && local_channel()) && (intval($item['item_private']) === 0)) ? true : false);
- $repeatable = ((($conv->get_profile_owner() == local_channel() && local_channel()) && (intval($item['item_private']) === 0) && (in_array($item['author']['xchan_network'], ['zot6', 'activitypub']))) ? true : false);
-
+ $shareable = ((($conv->get_profile_owner() == local_channel() && local_channel()) && ($item['item_private'] != 1)) ? true : false);
// allow an exemption for sharing stuff from your private feeds
if($item['author']['xchan_network'] === 'rss')
@@ -317,13 +315,13 @@ class ThreadItem {
$share = [];
$embed = [];
if ($shareable) {
- $embed = [t('Reshare'), t('reshare')];
- }
-
- // This actually turns out not to be possible in some protocol stacks without opening up hundreds of new issues.
- // Will allow it only for uri resolvable sources.
- if($repeatable) {
- $share = [t('Repeat'), t('repeat')];
+ // This actually turns out not to be possible in some protocol stacks without opening up hundreds of new issues.
+ // Will allow it only for uri resolvable sources.
+ if(strpos($item['mid'],'http') === 0) {
+ //Not yet ready for primetime
+ //$share = array( t('Repeat This'), t('repeat'));
+ }
+ $embed = [t('Share This'), t('share')];
}
$dreport = '';