diff options
author | zotlabs <mike@macgirvin.com> | 2019-02-07 14:38:05 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2019-02-07 14:38:05 -0800 |
commit | 317c53acf6b74a4f92284074017985fb09662a46 (patch) | |
tree | f7a6f35604bed1dca48b5425e5fd7a34b9a2a2b8 /Zotlabs/Lib/ThreadItem.php | |
parent | f02af5fe6ea9e86a99e6e1ae5a7057350bb7224a (diff) | |
download | volse-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/ThreadItem.php')
-rw-r--r-- | Zotlabs/Lib/ThreadItem.php | 6 |
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')); } |