diff options
author | Mario Vavti <mario@mariovavti.com> | 2024-07-19 13:53:58 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2024-07-19 13:53:58 +0200 |
commit | 526730672a7d8baa4a7e9f78f10d919cf547acf1 (patch) | |
tree | 092cb62e92915525f041a620e6075c3f464d6032 | |
parent | 65185a70d593d98570baa4599f562a0d05151d83 (diff) | |
download | volse-hubzilla-526730672a7d8baa4a7e9f78f10d919cf547acf1.tar.gz volse-hubzilla-526730672a7d8baa4a7e9f78f10d919cf547acf1.tar.bz2 volse-hubzilla-526730672a7d8baa4a7e9f78f10d919cf547acf1.zip |
use the same url for attachment and body. otherwise we can not deduplicate at the receiving side.
-rw-r--r-- | Zotlabs/Module/Wall_attach.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Wall_attach.php b/Zotlabs/Module/Wall_attach.php index 3c57d4b94..e354f58f1 100644 --- a/Zotlabs/Module/Wall_attach.php +++ b/Zotlabs/Module/Wall_attach.php @@ -111,7 +111,7 @@ class Wall_attach extends \Zotlabs\Web\Controller { // give a wee bit of time for the background thumbnail processor to do its thing // or else we'll never see a video poster sleep(3); - $url = z_root() . '/cloud/' . $channel['channel_address'] . '/' . $r['data']['display_path']; + $url = z_root() . '/attach/' . $r['data']['hash']; $thumb = Linkinfo::get_video_poster($url); if($thumb) { $s = '[zvideo poster=\'' . $thumb . '\']' . $url . '[/zvideo]'; @@ -120,8 +120,8 @@ class Wall_attach extends \Zotlabs\Web\Controller { $s = '[zvideo]' . $url . '[/zvideo]'; } } - if(strpos($r['data']['filetype'],'audio') === 0) { - $url = z_root() . '/cloud/' . $channel['channel_address'] . '/' . $r['data']['display_path']; + if(strpos($r['data']['filetype'], 'audio') === 0) { + $url = z_root() . '/attach/' . $r['data']['hash']; $s = '[zaudio]' . $url . '[/zaudio]'; } if ($r['data']['filetype'] === 'image/svg+xml') { |