From 87a24c8058abf8d453e15a7c2d414609d2599ab2 Mon Sep 17 00:00:00 2001 From: idanoo Date: Sun, 20 Nov 2022 18:33:06 +1300 Subject: [PATCH] Add link --- main.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index ceddc38..7a37f9b 100644 --- a/main.go +++ b/main.go @@ -71,7 +71,18 @@ func handler(w http.ResponseWriter, r *http.Request) { } } else if i.Event == "account.created" { country := ipLookup(i.Object.IP) - err = sendWebhook(fmt.Sprintf("*New Signup* %s (%s) has signed up.%s", i.Object.Username, i.Object.Email, country)) + err = sendWebhook( + fmt.Sprintf( + "*New Signup* %s (%s) has signed up.%s\n%s", + i.Object.Username, + i.Object.Email, + country, + fmt.Sprintf( + "https://mastodon.nz/admin/accounts/%s", + i.Object.ID, + ), + ), + ) if err != nil { log.Println(err.Error()) return