From 3ce15400b4181a2a6bbd56970bd4b1ddbffe3c44 Mon Sep 17 00:00:00 2001 From: idanoo Date: Sun, 29 Jan 2023 20:17:09 +1300 Subject: [PATCH] Test some logging --- main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index b06eabf..3b8b91d 100644 --- a/main.go +++ b/main.go @@ -127,17 +127,21 @@ func handler(w http.ResponseWriter, r *http.Request) { } } else if i.Event == "account.approved" { msg := fmt.Sprintf( - "Account Approved [%s](%s)", - i.Object.Username, + "[Account Approved](%s): %s by %s", fmt.Sprintf( "https://mastodon.nz/admin/accounts/%s", i.Object.ID, ), + i.Object.Username, + "test", ) // Log to stdout log.Println(msg) + // Debug? + log.Println(r.Body) + // Send to Matrix err = sendWebhook( msg,