[MM-49170] Implement Auditable Interface for Patch Post Struct (#21898)

* Implement Auditable Function for Patch Post Endpoint

* Call auditable explicitly for patchPost patch parameter

* Delete audit-config.json

* Include HasReactions in Audit Log Entry for Patch
Этот коммит содержится в:
Daniel Schalla
2022-12-16 16:50:06 +01:00
коммит произвёл GitHub
родитель bef1f1cf60
Коммит 529fdd2643
2 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@@ -802,7 +802,8 @@ func patchPost(c *Context, w http.ResponseWriter, r *http.Request) {
}
auditRec := c.MakeAuditRecord("patchPost", audit.Fail)
auditRec.AddEventParameter("patch", post)
auditRec.AddEventParameter("id", c.Params.PostId)
auditRec.AddEventParameter("patch", post.Auditable())
defer c.LogAuditRecWithLevel(auditRec, app.LevelContent)
// Updating the file_ids of a post is not a supported operation and will be ignored