X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/823f6b4d3621521603b66d8e09859dd87821348c..1d49b0d71df85ca7f6d049c2ccd2bed0999f2a79:/app/models/user_block.rb diff --git a/app/models/user_block.rb b/app/models/user_block.rb index edea23c80..eb0daba65 100644 --- a/app/models/user_block.rb +++ b/app/models/user_block.rb @@ -29,7 +29,8 @@ class UserBlock < ActiveRecord::Base ## # returns true if the block is a "zero hour" block def zero_hour? - needs_view && (ends_at.to_i == updated_at.to_i) + # if the times differ more than 1 minute we probably have more important issues + needs_view && (ends_at.to_i - updated_at.to_i) < 60 end ##