diff --git a/app/models/question.rb b/app/models/question.rb index 2e0fcffb..f9b8e4c3 100644 --- a/app/models/question.rb +++ b/app/models/question.rb @@ -17,7 +17,7 @@ class Question < ApplicationRecord end # rubocop:disable Rails/SkipsModelValidations - user&.decrement! :asked_count unless author_is_anonymous + user&.decrement! :asked_count unless author_is_anonymous || direct # rubocop:enable Rails/SkipsModelValidations end