X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c8c13e7d00921bb695d1eeaa5eac0379f2a9add1..ddba8fbcb8c1013f6e002038be6c14c788f1dca6:/app/helpers/user_blocks_helper.rb diff --git a/app/helpers/user_blocks_helper.rb b/app/helpers/user_blocks_helper.rb index c7c12f6d1..f18a6250c 100644 --- a/app/helpers/user_blocks_helper.rb +++ b/app/helpers/user_blocks_helper.rb @@ -34,8 +34,8 @@ module UserBlocksHelper end else if block.revoker_id.nil? - if block.updated_at > block.ends_at - t("user_blocks.helper.short.read_html", :time => block_short_time_in_past(block.updated_at)) + if block.deactivates_at > block.ends_at + t("user_blocks.helper.short.read_html", :time => block_short_time_in_past(block.deactivates_at)) else t("user_blocks.helper.short.ended") end