1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00

Update paste report webhook request

This commit is contained in:
Lukas Schulte Pelkum
2021-07-24 17:03:40 +02:00
parent e8f7fa239e
commit 6172ad463b
3 changed files with 11 additions and 7 deletions

View File

@@ -255,9 +255,8 @@ func endpointReportPaste(ctx *fasthttp.RequestCtx) {
}
request := &report.ReportRequest{
Paste: ctx.UserValue("_paste").(*shared.Paste).ID,
Reason: payload.Reason,
Timestamp: time.Now().Unix(),
Paste: ctx.UserValue("_paste").(*shared.Paste).ID,
Reason: payload.Reason,
}
response, err := report.SendReport(request)
if err != nil {