Turns out the strange error where it would delete the wrong reaction occurred because I forgot to pass the emoji name to the query, which resulted in the database deleting the first reaction it found. Also, this removes the unused set_reaction callback and includes the Authorization module for the status reactions controller. |
||
|---|---|---|
| .. | ||
| bookmarks_controller.rb | ||
| favourited_by_accounts_controller.rb | ||
| favourites_controller.rb | ||
| histories_controller.rb | ||
| mutes_controller.rb | ||
| pins_controller.rb | ||
| reactions_controller.rb | ||
| reblogged_by_accounts_controller.rb | ||
| reblogs_controller.rb | ||
| sources_controller.rb | ||
| translations_controller.rb | ||