mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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
|
# will automatically bump a single topic
|
||||||
# if number of automatically bumped topics is smaller than threshold
|
# if number of automatically bumped topics is smaller than threshold
|
||||||
def auto_bump_topic!
|
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
|
limiter = auto_bump_limiter
|
||||||
return false if !limiter.can_perform?
|
return false if !limiter.can_perform?
|
||||||
|
Loading…
Reference in New Issue
Block a user