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