Always show the shortened URL; optionally print the deleteToken URL
This commit is contained in:
1 parent
01580bfe2a
commit
d0b8a9ab9e
1 file changed
+1
-2
@@ -1,5 +1,4 @@
|
||||
https://{{.Request.Host}}/{{.Paste.Key}}
|
||||
{{if .Request.PostForm.deleteToken -}}
|
||||
https://{{.Request.Host}}/{{.Paste.Key}}?deleteToken={{.Paste.DeleteToken | urlquery}}
|
||||
{{else -}}
|
||||
https://{{.Request.Host}}/{{.Paste.Key}}
|
||||
{{end -}}
|
||||
Reference in new issue
Block a user