~ols/yeet

fd90326d7fbfe59da84dd1c7e86fa5a2651b12b9 — Oliver Leaver-Smith 2 years ago 4859142
dehonk honker page
1 files changed, 4 insertions(+), 4 deletions(-)

M web.go
M web.go => web.go +4 -4
@@ 738,9 738,9 @@ func showhonker(w http.ResponseWriter, r *http.Request) {
	miniform := templates.Sprintf(`<form action="/submithonker" method="POST">
<input type="hidden" name="CSRF" value="%s">
<input type="hidden" name="url" value="%s">
<button tabindex=1 name="add honker" value="add honker">add honker</button>
<button tabindex=1 name="add honker" value="add honker">follow</button>
</form>`, login.GetCSRF("submithonker", r), name)
	msg := templates.Sprintf(`honks by honker: <a href="%s" ref="noreferrer">%s</a>%s`, name, name, miniform)
msg := templates.Sprintf(`posts by <a href="%s" ref="noreferrer">%s</a>%s`, name, name, miniform)
	templinfo := getInfo(r)
	templinfo["PageName"] = "honker"
	templinfo["PageArg"] = name


@@ 2231,9 2231,9 @@ func webhydra(w http.ResponseWriter, r *http.Request) {
		miniform := templates.Sprintf(`<form action="/submithonker" method="POST">
			<input type="hidden" name="CSRF" value="%s">
			<input type="hidden" name="url" value="%s">
			<button tabindex=1 name="add honker" value="add honker">add honker</button>
			<button tabindex=1 name="add honker" value="add honker">follow</button>
			</form>`, login.GetCSRF("submithonker", r), xid)
		msg := templates.Sprintf(`honks by honker: <a href="%s" ref="noreferrer">%s</a>%s`, xid, xid, miniform)
			msg := templates.Sprintf(`posts by <a href="%s" ref="noreferrer">%s</a>%s`, xid, xid, miniform)
		templinfo["ServerMessage"] = msg
	default:
		http.NotFound(w, r)