mirror of
https://github.com/idanoo/go-mastodon-matrix-webhooks.git
synced 2024-11-22 16:35:17 +00:00
Add buttons
This commit is contained in:
parent
486611b80a
commit
78744e4701
4
main.go
4
main.go
@ -74,7 +74,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
|
|||||||
country := ipLookup(i.Object.IP)
|
country := ipLookup(i.Object.IP)
|
||||||
err = sendWebhook(
|
err = sendWebhook(
|
||||||
fmt.Sprintf(
|
fmt.Sprintf(
|
||||||
"[New Signup](%s) %s: %s (%s). %s",
|
"[New Signup](%s) %s: *%s* (%s). %s *[APPROVE](%s)* or *[REJECT](%s)*",
|
||||||
fmt.Sprintf(
|
fmt.Sprintf(
|
||||||
"https://mastodon.nz/admin/accounts/%s",
|
"https://mastodon.nz/admin/accounts/%s",
|
||||||
i.Object.ID,
|
i.Object.ID,
|
||||||
@ -86,6 +86,8 @@ func handler(w http.ResponseWriter, r *http.Request) {
|
|||||||
"Notes: %s",
|
"Notes: %s",
|
||||||
i.Object.Notes,
|
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 {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user