aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-02-07 14:38:05 -0800
committerzotlabs <mike@macgirvin.com>2019-02-07 14:38:05 -0800
commit317c53acf6b74a4f92284074017985fb09662a46 (patch)
treef7a6f35604bed1dca48b5425e5fd7a34b9a2a2b8 /Zotlabs/Lib
parentf02af5fe6ea9e86a99e6e1ae5a7057350bb7224a (diff)
downloadvolse-hubzilla-317c53acf6b74a4f92284074017985fb09662a46.tar.gz
volse-hubzilla-317c53acf6b74a4f92284074017985fb09662a46.tar.bz2
volse-hubzilla-317c53acf6b74a4f92284074017985fb09662a46.zip
disable repeat unless mid is a resolvable uri since this will do radically different things on different network stacks (e.g. Diaspora) and it turns out there is no possible way to make Diaspora reshares compatible with ActivityPub or Zot6 repeat/announce/boost/whatever.
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/ThreadItem.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Lib/ThreadItem.php b/Zotlabs/Lib/ThreadItem.php
index 6c4deea27..94d0e3cf8 100644
--- a/Zotlabs/Lib/ThreadItem.php
+++ b/Zotlabs/Lib/ThreadItem.php
@@ -294,7 +294,11 @@ class ThreadItem {
}
if ($shareable) {
- $share = array( t('Repeat This'), 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) {
+ $share = array( t('Repeat This'), t('repeat'));
+ }
$embed = array( t('Share This'), t('share'));
}