diff options
author | Max Kostikov <max@kostikov.co> | 2018-12-04 11:50:04 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-12-04 11:50:04 +0100 |
commit | d12744011affe7f6b79201442ad9fce6e083bdbb (patch) | |
tree | 69b5bb1b43d807908d38d7febec21732fd334a49 /include/items.php | |
parent | 5d9f993352ae51ac3873355d3e2d25e36ac97461 (diff) | |
parent | c0e4c92d47d0340fa830ba059233b3115b24f92b (diff) | |
download | volse-hubzilla-d12744011affe7f6b79201442ad9fce6e083bdbb.tar.gz volse-hubzilla-d12744011affe7f6b79201442ad9fce6e083bdbb.tar.bz2 volse-hubzilla-d12744011affe7f6b79201442ad9fce6e083bdbb.zip |
Merge branch 'dev' into 'dev'
Add strings to Russian translation
See merge request hubzilla/core!1418
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index b2c288b75..0cbca23fc 100755 --- a/include/items.php +++ b/include/items.php @@ -420,7 +420,7 @@ function post_activity_item($arr, $allow_code = false, $deliver = true) { $arr['comment_policy'] = map_scope(PermissionLimits::Get($channel['channel_id'],'post_comments')); if ((! $arr['plink']) && (intval($arr['item_thread_top']))) { - $arr['plink'] = substr(z_root() . '/channel/' . $channel['channel_address'] . '/?f=&mid=' . urlencode($arr['mid']),0,190); + $arr['plink'] = substr(z_root() . '/channel/' . $channel['channel_address'] . '/' . (filter_var($arr['mid'], FILTER_VALIDATE_URL) === false ? '?f=&mid=' : '') . urlencode($arr['mid']),0,190); } |