handleDeleteClick(i: PostListing) {
let deleteForm: DeletePost = {
- edit_id: i.props.post_view.post.id,
+ post_id: i.props.post_view.post.id,
deleted: !i.props.post_view.post.deleted,
auth: authField(),
};
handleModRemoveSubmit(i: PostListing) {
event.preventDefault();
let form: RemovePost = {
- edit_id: i.props.post_view.post.id,
+ post_id: i.props.post_view.post.id,
removed: !i.props.post_view.post.removed,
reason: i.state.removeReason,
auth: authField(),
handleModLock(i: PostListing) {
let form: LockPost = {
- edit_id: i.props.post_view.post.id,
+ post_id: i.props.post_view.post.id,
locked: !i.props.post_view.post.locked,
auth: authField(),
};
handleModSticky(i: PostListing) {
let form: StickyPost = {
- edit_id: i.props.post_view.post.id,
+ post_id: i.props.post_view.post.id,
stickied: !i.props.post_view.post.stickied,
auth: authField(),
};