aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-07-19 13:53:58 +0200
committerMario Vavti <mario@mariovavti.com>2024-07-19 13:53:58 +0200
commit526730672a7d8baa4a7e9f78f10d919cf547acf1 (patch)
tree092cb62e92915525f041a620e6075c3f464d6032
parent65185a70d593d98570baa4599f562a0d05151d83 (diff)
downloadvolse-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.php6
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') {