diff options
author | Max Kostikov <max@kostikov.co> | 2019-11-08 23:39:04 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-11-08 23:39:04 +0100 |
commit | ec68ede79faffd5733c3eaa24df2e4fb3b54eeb9 (patch) | |
tree | c26098c1c0ebff705dc4ef4f324b8b1656c61b9a /Zotlabs/Module/Item.php | |
parent | 3706afbd01164c9f322c605d6ec242e6ca4770fa (diff) | |
parent | 478014f02a9241ec6d5b5e9672968897176302d2 (diff) | |
download | volse-hubzilla-ec68ede79faffd5733c3eaa24df2e4fb3b54eeb9.tar.gz volse-hubzilla-ec68ede79faffd5733c3eaa24df2e4fb3b54eeb9.tar.bz2 volse-hubzilla-ec68ede79faffd5733c3eaa24df2e4fb3b54eeb9.zip |
Merge branch 'dev' into 'dev'
Dev sync
See merge request kostikov/core!4
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r-- | Zotlabs/Module/Item.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php index cda8eabec..14881844d 100644 --- a/Zotlabs/Module/Item.php +++ b/Zotlabs/Module/Item.php @@ -817,11 +817,6 @@ class Item extends Controller { 'revision' => $r['data']['revision'] ); } - $ext = substr($r['data']['filename'],strrpos($r['data']['filename'],'.')); - if(strpos($r['data']['filetype'],'audio/') !== false) - $attach_link = '[audio]' . z_root() . '/attach/' . $r['data']['hash'] . '/' . $r['data']['revision'] . (($ext) ? $ext : '') . '[/audio]'; - elseif(strpos($r['data']['filetype'],'video/') !== false) - $attach_link = '[video]' . z_root() . '/attach/' . $r['data']['hash'] . '/' . $r['data']['revision'] . (($ext) ? $ext : '') . '[/video]'; $body = str_replace($match[1][$i],$attach_link,$body); $i++; } |