mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: not checking for 0 correctly
0.blank? == false
This commit is contained in:
parent
fa38891a98
commit
a755ff7b35
@ -405,7 +405,7 @@ class Category < ActiveRecord::Base
|
||||
# will automatically bump a single topic
|
||||
# if number of automatically bumped topics is smaller than threshold
|
||||
def auto_bump_topic!
|
||||
return false if num_auto_bump_daily.blank?
|
||||
return false if num_auto_bump_daily.to_i == 0
|
||||
|
||||
limiter = auto_bump_limiter
|
||||
return false if !limiter.can_perform?
|
||||
|
Loading…
x
Reference in New Issue
Block a user