diff options
author | Hubzilla <hubzilla@hz.macgirvin.com> | 2017-01-18 18:45:17 -0800 |
---|---|---|
committer | Hubzilla <hubzilla@hz.macgirvin.com> | 2017-01-18 18:45:17 -0800 |
commit | 7dfadfea4a637ce5566eb45f2d1adedf04bd04f3 (patch) | |
tree | 2aa74ac5740a103cb9101dffc392a22ef0939b69 /Zotlabs/Module/Item.php | |
parent | d4e58e94f6777f0a7ab5733d889f29bdb9366b14 (diff) | |
download | volse-hubzilla-7dfadfea4a637ce5566eb45f2d1adedf04bd04f3.tar.gz volse-hubzilla-7dfadfea4a637ce5566eb45f2d1adedf04bd04f3.tar.bz2 volse-hubzilla-7dfadfea4a637ce5566eb45f2d1adedf04bd04f3.zip |
urlencode the message-id component of generated /display/ links; in most cases this will be a no-op, unless the message-id is a url of some kind from a different provider.
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r-- | Zotlabs/Module/Item.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index 91a8b1a47..d5fac306b 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -935,7 +935,7 @@ class Item extends \Zotlabs\Web\Controller { 'from_xchan' => $datarray['author_xchan'], 'to_xchan' => $datarray['owner_xchan'], 'item' => $datarray, - 'link' => z_root() . '/display/' . $datarray['mid'], + 'link' => z_root() . '/display/' . urlencode($datarray['mid']), 'verb' => ACTIVITY_POST, 'otype' => 'item', 'parent' => $parent, @@ -953,7 +953,7 @@ class Item extends \Zotlabs\Web\Controller { 'from_xchan' => $datarray['author_xchan'], 'to_xchan' => $datarray['owner_xchan'], 'item' => $datarray, - 'link' => z_root() . '/display/' . $datarray['mid'], + 'link' => z_root() . '/display/' . urlencode($datarray['mid']), 'verb' => ACTIVITY_POST, 'otype' => 'item' )); @@ -1005,7 +1005,7 @@ class Item extends \Zotlabs\Web\Controller { } $datarray['id'] = $post_id; - $datarray['llink'] = z_root() . '/display/' . $channel['channel_address'] . '/' . $post_id; + $datarray['llink'] = z_root() . '/display/' . urlencode($datarray['mid']); call_hooks('post_local_end', $datarray); |