summaryrefslogtreecommitdiff
path: root/src/gmi
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmi')
-rw-r--r--src/gmi/gmi.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gmi/gmi.go b/src/gmi/gmi.go
index 115f379..127f6b5 100644
--- a/src/gmi/gmi.go
+++ b/src/gmi/gmi.go
@@ -16,6 +16,7 @@ import (
"github.com/mediocregopher/blog.mediocregopher.com/srv/cache"
"github.com/mediocregopher/blog.mediocregopher.com/srv/cfg"
"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"
"github.com/mediocregopher/mediocre-go-lib/v2/mlog"
)
@@ -27,7 +28,7 @@ type Params struct {
Cache cache.Cache
PostStore post.Store
- PostAssetStore post.AssetStore
+ PostAssetStore asset.Store
PublicURL *url.URL
ListenAddr string
@@ -218,7 +219,7 @@ func (a *api) assetsMiddleware() gemini.Handler {
err := a.params.PostAssetStore.Get(id, rw)
- if errors.Is(err, post.ErrAssetNotFound) {
+ if errors.Is(err, asset.ErrNotFound) {
rw.WriteHeader(gemini.StatusNotFound, "Asset not found, sorry!")
return