ThibG
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
app/controllers/api/v1/announcements_controller.rb
|
|
@ -11,7 +11,7 @@ class Api::V1::AnnouncementsController < Api::BaseController |
|
|
|
end |
|
|
|
|
|
|
|
def dismiss |
|
|
|
AnnouncementMute.create!(account: current_account, announcement: @announcement) |
|
|
|
AnnouncementMute.find_or_create_by!(account: current_account, announcement: @announcement) |
|
|
|
render_empty |
|
|
|
end |
|
|
|
|
|
|
|