From 7b51467495ca335b64cdb7b7f18751e66e4e9a0c Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Sat, 19 Feb 2022 11:29:14 +0300 Subject: [PATCH] Fix /rev/ for media hyphae --- web/readers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/readers.go b/web/readers.go index c860321..f53cd8a 100644 --- a/web/readers.go +++ b/web/readers.go @@ -127,7 +127,7 @@ func handlerRevision(w http.ResponseWriter, rq *http.Request) { u = user.FromRequest(rq) ) switch h := h.(type) { - case *hyphae.TextualHypha: + case hyphae.ExistingHypha: var textContents, err = history.FileAtRevision(h.TextFilePath(), revHash) if err == nil {