mirror of
https://github.com/idanoo/go-mastodon-matrix-webhooks.git
synced 2024-11-22 08:25:17 +00:00
Formatting
This commit is contained in:
parent
43e6cab6a6
commit
bc0784dabf
5
main.go
5
main.go
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user