summaryrefslogtreecommitdiff
path: root/src/http/posts.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/posts.go')
-rw-r--r--src/http/posts.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/posts.go b/src/http/posts.go
index 14224f2..42e5b4a 100644
--- a/src/http/posts.go
+++ b/src/http/posts.go
@@ -40,10 +40,16 @@ func (a *api) postPreprocessFuncImage(args ...string) (string, error) {
tpl = txttpl.Must(tpl.Parse(mustReadTplFile("image.html")))
tplPayload := struct {
+ RootURL render.URLBuilder
ID string
Descr string
Resizable bool
}{
+ RootURL: render.NewURLBuilder(
+ a.params.PublicURL,
+ a.params.PublicURL, // httpURL
+ a.params.GeminiPublicURL,
+ ),
ID: id,
Descr: descr,
Resizable: asset.IsImageResizable(id),