mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-11-07 19:13:01 +00:00
Fix /rev/ for media hyphae
This commit is contained in:
committed by
Timur Ismagilov
parent
c0ac87cdbd
commit
7b51467495
@@ -127,7 +127,7 @@ func handlerRevision(w http.ResponseWriter, rq *http.Request) {
|
|||||||
u = user.FromRequest(rq)
|
u = user.FromRequest(rq)
|
||||||
)
|
)
|
||||||
switch h := h.(type) {
|
switch h := h.(type) {
|
||||||
case *hyphae.TextualHypha:
|
case hyphae.ExistingHypha:
|
||||||
var textContents, err = history.FileAtRevision(h.TextFilePath(), revHash)
|
var textContents, err = history.FileAtRevision(h.TextFilePath(), revHash)
|
||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user