mirror of
https://github.com/idanoo/go-mastodon-matrix-webhooks.git
synced 2024-11-22 16:35: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" {
|
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(
|
|
||||||
"Comments: %s",
|
|
||||||
i.Object.Comment,
|
i.Object.Comment,
|
||||||
),
|
),
|
||||||
),
|
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err.Error())
|
log.Println(err.Error())
|
||||||
|
Loading…
Reference in New Issue
Block a user