summaryrefslogtreecommitdiff
path: root/src/http/posts.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2023-04-15 21:35:06 +0200
committerBrian Picciano <mediocregopher@gmail.com>2023-04-17 04:17:45 +0200
commit5559e0134382a141f5edabdacf1dc81f12b55c27 (patch)
tree0cd897880e52572f1e12334dfe94535a140549ce /src/http/posts.go
parent7872296b838f4d1b26c6a0a01d79d27fe5ab44cc (diff)
Implement asset.Loader
This moved a bunch of logic out of http and into the asset package, making it available for gmit too.
Diffstat (limited to 'src/http/posts.go')
-rw-r--r--src/http/posts.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/posts.go b/src/http/posts.go
index 872ea89..5c7ac25 100644
--- a/src/http/posts.go
+++ b/src/http/posts.go
@@ -18,6 +18,7 @@ import (
"github.com/mediocregopher/blog.mediocregopher.com/srv/gmi"
"github.com/mediocregopher/blog.mediocregopher.com/srv/http/apiutil"
"github.com/mediocregopher/blog.mediocregopher.com/srv/post"
+ "github.com/mediocregopher/blog.mediocregopher.com/srv/post/asset"
"github.com/mediocregopher/mediocre-go-lib/v2/mctx"
)
@@ -49,7 +50,7 @@ func (a *api) postPreprocessFuncImage(args ...string) (string, error) {
}{
ID: id,
Descr: descr,
- Resizable: isImgResizable(id),
+ Resizable: asset.IsImageResizable(id),
}
buf := new(bytes.Buffer)