From 5e163da05e3655538816abbfc8f308189bf65e66 Mon Sep 17 00:00:00 2001 From: xiaomlove <1939737565@qq.com> Date: Fri, 23 Jan 2026 13:10:24 +0700 Subject: [PATCH] fix bbcode_attach_to_img driver local --- include/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/functions.php b/include/functions.php index 6bc03326..976d8b84 100644 --- a/include/functions.php +++ b/include/functions.php @@ -6573,6 +6573,7 @@ function bbcode_attach_to_img(string $text) { } else { $url = $httpdirectory_attachment."/".$row['location']; } + $url = sprintf("%s/%s", getSchemeAndHttpHost(true), trim($url, "/")); } else { $url = \Nexus\Attachment\Storage::getDriver($driver)->getImageUrl($row['location']); }