mirror of
https://github.com/idanoo/go-mastodon-matrix-webhooks
synced 2025-07-01 11:02:14 +00:00
Formatting
This commit is contained in:
parent
43e6cab6a6
commit
bc0784dabf
1 changed files with 2 additions and 5 deletions
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…
Add table
Add a link
Reference in a new issue