diff --git a/handlers.go b/handlers.go index b80a92c..3addd89 100755 --- a/handlers.go +++ b/handlers.go @@ -297,7 +297,11 @@ 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 p.IsPublished { + command = "/read" + } else { + command = "/view" + } } if command == "/erase" { if !p.IsLocked && !p.IsEncrypted {