From ae803d11271dc659bc3ab7a8c459178f75d08334 Mon Sep 17 00:00:00 2001 From: idanoo Date: Sun, 29 Jan 2023 20:21:09 +1300 Subject: [PATCH] Finish webhook for approved accounts --- main.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/main.go b/main.go index fa7a22b..094a64d 100644 --- a/main.go +++ b/main.go @@ -127,22 +127,17 @@ func handler(w http.ResponseWriter, r *http.Request) { } } else if i.Event == "account.approved" { msg := fmt.Sprintf( - "[Account Approved](%s): %s by %s", + "[Signup Approved](%s): %s", fmt.Sprintf( "https://mastodon.nz/admin/accounts/%s", i.Object.ID, ), i.Object.Username, - "test", ) // Log to stdout log.Println(msg) - // Debug? - str, _ := json.Marshal(i) - log.Println(string(str)) - // Send to Matrix err = sendWebhook( msg,