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" {
|
if i.Event == "report.created" {
|
||||||
err = sendWebhook(
|
err = sendWebhook(
|
||||||
fmt.Sprintf(
|
fmt.Sprintf(
|
||||||
"[New Report](%s): %s has reported %s for %s",
|
"[New Report](%s): *%s* has reported *%s*: %s",
|
||||||
fmt.Sprintf(
|
fmt.Sprintf(
|
||||||
"https://mastodon.nz/admin/reports/%s",
|
"https://mastodon.nz/admin/reports/%s",
|
||||||
i.Object.ID,
|
i.Object.ID,
|
||||||
),
|
),
|
||||||
i.Object.Account.Username,
|
i.Object.Account.Username,
|
||||||
i.Object.TargetAccount.Username,
|
i.Object.TargetAccount.Username,
|
||||||
fmt.Sprintf(
|
i.Object.Comment,
|
||||||
"Comments: %s",
|
|
||||||
i.Object.Comment,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user