Formatting

This commit is contained in:
idanoo 2022-11-20 19:10:26 +13:00
parent 43e6cab6a6
commit bc0784dabf
Signed by: idanoo
GPG Key ID: 387387CDBC02F132

View File

@ -67,18 +67,15 @@ func handler(w http.ResponseWriter, r *http.Request) {
if i.Event == "report.created" {
err = sendWebhook(
fmt.Sprintf(
"[New Report](%s): %s has reported %s for %s",
"[New Report](%s): *%s* has reported *%s*: %s",
fmt.Sprintf(
"https://mastodon.nz/admin/reports/%s",
i.Object.ID,
),
i.Object.Account.Username,
i.Object.TargetAccount.Username,
fmt.Sprintf(
"Comments: %s",
i.Object.Comment,
),
),
)
if err != nil {
log.Println(err.Error())