]> Untitled Git - lemmy.git/commit
Adding form_id to comment creates and edits.
authorDessalines <tyhou13@gmx.com>
Tue, 21 Jul 2020 14:56:41 +0000 (10:56 -0400)
committerDessalines <tyhou13@gmx.com>
Tue, 21 Jul 2020 14:56:41 +0000 (10:56 -0400)
commitf81a7ad9ab64408a4a336e8dfcca6261a9d916b6
tree657d3d30ca0389267feae8b8aac007d9c404bbd0
parent4b6a762a5681759e58c172f7c844562534415e8e
Adding form_id to comment creates and edits.

- This adds a form_id to CreateComment, EditComment, and CommentResponse
- This is so any front end clients can add a randomly generated string,
  and know which comment they submitted, is the one they're getting
  back.
- This gets rid of all the weird complicated logic in handleFinished(),
  and should stop the comment forms getting cleared once and for all.
docs/src/contributing_websocket_http_api.md
server/src/api/comment.rs
server/src/apub/shared_inbox.rs
ui/src/components/comment-form.tsx
ui/src/components/markdown-textarea.tsx
ui/src/interfaces.ts