From 2b078b83c0e7ba84b6fe214dce605006eb882ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?KMY=EF=BC=88=E9=9B=AA=E3=81=82=E3=81=99=E3=81=8B=EF=BC=89?= Date: Fri, 16 Feb 2024 19:31:12 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20NG=E3=83=AF=E3=83=BC=E3=83=89=E5=B1=A5?= =?UTF-8?q?=E6=AD=B4=E9=87=8D=E8=A4=87=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=81=AE=E3=82=AF=E3=82=A8=E3=83=AA=E3=83=9F=E3=82=B9=20(#570)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/admin/ng_word.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/admin/ng_word.rb b/app/models/admin/ng_word.rb index 5be03409d6..3e7c7e78ce 100644 --- a/app/models/admin/ng_word.rb +++ b/app/models/admin/ng_word.rb @@ -53,7 +53,7 @@ class Admin::NgWord return unless options[:uri] && options[:target_type] return if options.key?(:public) && !options.delete(:public) - return if NgwordHistory.where('created_at > ?', 1.day.ago).exists?(uri: options[:uri], keyword: options[:keyword]) + return if NgwordHistory.where('created_at > ?', 1.day.ago).exists?(uri: options[:uri], keyword: keyword) NgwordHistory.create(options.merge({ reason: type,