mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-26 23:01:36 +01:00
Fix dismissing an announcement twice raising an obscure error (#13124)
This commit is contained in:
parent
cf4fe6caef
commit
7face973fa
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ class Api::V1::AnnouncementsController < Api::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def dismiss
|
def dismiss
|
||||||
AnnouncementMute.create!(account: current_account, announcement: @announcement)
|
AnnouncementMute.find_or_create_by!(account: current_account, announcement: @announcement)
|
||||||
render_empty
|
render_empty
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue