From 448eec3d6f7daa20f5584f6091842bbb14b2d679 Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Fri, 30 Jul 2021 19:20:21 +0500 Subject: [PATCH] Show primitive diffs of deleted hyphae --- views/history.qtpl | 2 +- views/history.qtpl.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/history.qtpl b/views/history.qtpl index bdece41..4864f42 100644 --- a/views/history.qtpl +++ b/views/history.qtpl @@ -11,7 +11,7 @@ {% func PrimitiveDiffHTML(rq *http.Request, h *hyphae.Hypha, u *user.User, hash string) %} {% code -text, err := history.PrimitiveDiffAtRevision(h.TextPath, hash) +text, err := history.PrimitiveDiffAtRevision(h.TextPartPath(), hash) if err != nil { text = err.Error() } diff --git a/views/history.qtpl.go b/views/history.qtpl.go index a306107..5780fc3 100644 --- a/views/history.qtpl.go +++ b/views/history.qtpl.go @@ -47,7 +47,7 @@ func StreamPrimitiveDiffHTML(qw422016 *qt422016.Writer, rq *http.Request, h *hyp qw422016.N().S(` `) //line views/history.qtpl:14 - text, err := history.PrimitiveDiffAtRevision(h.TextPath, hash) + text, err := history.PrimitiveDiffAtRevision(h.TextPartPath(), hash) if err != nil { text = err.Error() }