From b286fae08976be2bc83844813ac7cf31261bce6c Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 28 Sep 2017 02:06:38 -0600 Subject: [PATCH] Goto "/view" when decrypting a self-destructing page Fixes #81 --- handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers.go b/handlers.go index 89dcf18..b373824 100755 --- a/handlers.go +++ b/handlers.go @@ -132,6 +132,7 @@ func handlePageRequest(c *gin.Context) { if p.IsPrimedForSelfDestruct && !p.IsLocked && !p.IsEncrypted { p.Update("*This page has self-destructed. You can not return to it.*\n\n" + p.Text.GetCurrent()) p.Erase() + command = "/view" } if command == "/erase" { if !p.IsLocked && !p.IsEncrypted {