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
7
main.go
7
main.go
@ -67,17 +67,14 @@ 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,
|
||||
),
|
||||
i.Object.Comment,
|
||||
),
|
||||
)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user