mirror of
https://github.com/idanoo/go-mastodon-matrix-webhooks.git
synced 2024-11-22 16:35:17 +00:00
Log account approval
This commit is contained in:
parent
de0cd3496a
commit
aeb8ce3a5c
19
main.go
19
main.go
@ -111,6 +111,25 @@ func handler(w http.ResponseWriter, r *http.Request) {
|
|||||||
log.Println(err.Error())
|
log.Println(err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
} else if i.Event == "account.approved" {
|
||||||
|
log.Println(r.Body)
|
||||||
|
// err = sendWebhook(
|
||||||
|
// fmt.Sprintf(
|
||||||
|
// "[New Report](%s): **%s** has approved **%s**: %s",
|
||||||
|
// fmt.Sprintf(
|
||||||
|
// "https://mastodon.nz/admin/reports/%s",
|
||||||
|
// i.Object.ID,
|
||||||
|
// ),
|
||||||
|
// i.Object.Account.Username,
|
||||||
|
// i.Object.TargetAccount.Username,
|
||||||
|
// i.Object.Comment,
|
||||||
|
// ),
|
||||||
|
// MATRIX_REPORT_CHANNEL,
|
||||||
|
// )
|
||||||
|
// if err != nil {
|
||||||
|
// log.Println(err.Error())
|
||||||
|
// return
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user