X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/823f6b4d3621521603b66d8e09859dd87821348c..ee53b7a298e75ac4c75866d6edea0a2611bdb663:/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 ##