Tidy formatting

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

10
main.go
View File

@ -74,7 +74,11 @@ 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",
fmt.Sprintf(
"https://mastodon.nz/admin/accounts/%s",
i.Object.ID,
),
country, country,
i.Object.Username, i.Object.Username,
i.Object.Email, i.Object.Email,
@ -82,10 +86,6 @@ 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",
i.Object.ID,
),
), ),
) )
if err != nil { if err != nil {