add a follow button
This commit is contained in:
parent
e91ac23779
commit
c2844561f3
|
@ -2,6 +2,8 @@ changelog
|
|||
|
||||
=== next
|
||||
|
||||
+ A new follow button in a surprise location.
|
||||
|
||||
+ Fix mastodon import.
|
||||
|
||||
+ Filters work better with hashtags.
|
||||
|
|
7
web.go
7
web.go
|
@ -727,7 +727,12 @@ func showhonker(w http.ResponseWriter, r *http.Request) {
|
|||
} else {
|
||||
honks = gethonksbyhonker(u.UserID, name, 0)
|
||||
}
|
||||
msg := templates.Sprintf(`honks by honker: <a href="%s" ref="noreferrer">%s</a>`, name, name)
|
||||
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>
|
||||
</form>`, login.GetCSRF("submithonker", r), name)
|
||||
msg := templates.Sprintf(`honks by honker: <a href="%s" ref="noreferrer">%s</a>%s`, name, name, miniform)
|
||||
templinfo := getInfo(r)
|
||||
templinfo["PageName"] = "honker"
|
||||
templinfo["PageArg"] = name
|
||||
|
|
Loading…
Reference in New Issue