bug: Removing "Like" (not Reaction) asks twice for "Are you sure?"
Created by: grischa
💡 Summary
When trying to remove a like, the "Are you sure?" pops up twice.
🥰 Expected Behavior
The "Are you sure?" should be asked only once.
🤬 Actual Behavior
When I add a "Like" to a post by clicking on the heart and try to remove it clicking on the newly added heart, I get a dialog that is asking "Are you sure?" If i answer "Yes" I see the heart being removed in the background but the dialog "Are you sure" pops up again. After answering "Yes" again, it goes away finally.
I see that behavior on shonk and dev.
📝 Steps to Reproduce
Add like to post Click on the icon, that appeared trying to remove Click "yes" on are you sure Click "Yes" again on the next dialog
💻 Frontend Environment
* Model and OS of the device(s): Ubuntu Laptop
* Browser: Firefox, recent
* Server URL: https://shonk.social/ (but dev, too)
* Misskey: Sorry?
🛰 Backend Environment (for server admin)
* Installation Method or Hosting Service:
* Misskey:
* Node:
* PostgreSQL:
* Redis:
* OS and Architecture:
Do you want to address this bug yourself?
- Yes, I will patch the bug myself and send a pull request