Kaynağa Gözat

Fix dismissing an announcement twice raising an obscure error (#13124)

master^2
ThibG 4 yıl önce
committed by GitHub
ebeveyn
işleme
7face973fa
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      app/controllers/api/v1/announcements_controller.rb

+ 1
- 1
app/controllers/api/v1/announcements_controller.rb Dosyayı Görüntüle

@@ -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




Yükleniyor…
İptal
Kaydet