fix bbcode_attach_to_img driver local

This commit is contained in:
xiaomlove
2026-01-23 13:10:24 +07:00
parent 3ced82fc0a
commit 5e163da05e
+1
View File
@@ -6573,6 +6573,7 @@ function bbcode_attach_to_img(string $text) {
} else { } else {
$url = $httpdirectory_attachment."/".$row['location']; $url = $httpdirectory_attachment."/".$row['location'];
} }
$url = sprintf("%s/%s", getSchemeAndHttpHost(true), trim($url, "/"));
} else { } else {
$url = \Nexus\Attachment\Storage::getDriver($driver)->getImageUrl($row['location']); $url = \Nexus\Attachment\Storage::getDriver($driver)->getImageUrl($row['location']);
} }