From 486611b80ae5ce2c58aaaaae9bfc063c2a99e1ef Mon Sep 17 00:00:00 2001 From: idanoo Date: Sun, 20 Nov 2022 18:53:02 +1300 Subject: [PATCH] Tidy formatting --- main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 3e4690e..577dc9a 100644 --- a/main.go +++ b/main.go @@ -74,7 +74,11 @@ 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", + fmt.Sprintf( + "https://mastodon.nz/admin/accounts/%s", + i.Object.ID, + ), country, i.Object.Username, i.Object.Email, @@ -82,10 +86,6 @@ func handler(w http.ResponseWriter, r *http.Request) { "Notes: %s", i.Object.Notes, ), - fmt.Sprintf( - "https://mastodon.nz/admin/accounts/%s", - i.Object.ID, - ), ), ) if err != nil {