mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
7ecb258b83
If you have the admin dashboard open, and one of the admin notices listed has already been dismissed (e.g. in another tab, or by another admin) we would show an ugly "FAILED" modal. This change makes the admin dismiss endpoint idempotent. If the admin notice is already destroyed, then respond with 200. This will also correctly remove it from the list in the front-end. |
||
---|---|---|
.. | ||
dismiss.rb |