Commit bec8013c authored by Jyrki's avatar Jyrki 🐾

Log when doing the filtering

parent d5eec88c
......@@ -5,7 +5,10 @@ class SpambotValidator < ActiveModel::Validator
@status = status
status.errors.add(:text, "Oopsie woopsie uwu") if should_filter?
if should_filter?
Rails.logger.warn("filtering status from account_id #{status.account_id}")
status.errors.add(:text, "Oopsie woopsie uwu")
end
end
private
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment