[Glitch] Add UI for revoking quote posts

Port 55a98580aa to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Claire
2025-08-06 13:52:56 +02:00
parent dbb2908eeb
commit 4b507c0f05
9 changed files with 147 additions and 17 deletions

View File

@@ -119,6 +119,10 @@ const mapDispatchToProps = (dispatch, { contextType }) => ({
}
},
onRevokeQuote (status) {
dispatch(openModal({ modalType: 'CONFIRM_REVOKE_QUOTE', modalProps: { statusId: status.get('id'), quotedStatusId: status.getIn(['quote', 'quoted_status']) }}));
},
onEdit (status) {
dispatch((_, getState) => {
let state = getState();