Skip to content

Commit

Permalink
do not remove post message content for websocket events, needed for m…
Browse files Browse the repository at this point in the history
…entions
  • Loading branch information
BenCookie95 committed Jul 5, 2024
1 parent af66375 commit c8d1121
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/channels/app/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -2640,8 +2640,6 @@ func (a *App) AfterPostDeletionCleanUp(c request.CTX, post *model.Post, deleteBy
}
}

// We should not re-send the message contents of a deleted message
post.Message = ""
postJSON, err := json.Marshal(post)
if err != nil {
return model.NewAppError("DeletePost", "api.marshal_error", nil, "", http.StatusInternalServerError).Wrap(err)
Expand Down

0 comments on commit c8d1121

Please sign in to comment.