Add buttons

This commit is contained in:
idanoo 2022-11-20 18:57:13 +13:00
parent 486611b80a
commit 78744e4701
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

View File

@ -74,7 +74,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
country := ipLookup(i.Object.IP)
err = sendWebhook(
fmt.Sprintf(
"[New Signup](%s) %s: %s (%s). %s",
"[New Signup](%s) %s: *%s* (%s). %s *[APPROVE](%s)* or *[REJECT](%s)*",
fmt.Sprintf(
"https://mastodon.nz/admin/accounts/%s",
i.Object.ID,
@ -86,6 +86,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
"Notes: %s",
i.Object.Notes,
),
fmt.Sprintf("https://mastodon.nz/admin/accounts/%s/approve", i.Object.ID),
fmt.Sprintf("https://mastodon.nz/admin/accounts/%s/reject", i.Object.ID),
),
)
if err != nil {