Check deactivates_at to report if block was read after its end date

This commit is contained in:
Anton Khorev 2025-01-06 21:10:18 +03:00
parent 97b14ce22a
commit 7e8fd5d7b7
2 changed files with 33 additions and 1 deletions

View file

@ -34,7 +34,7 @@ module UserBlocksHelper
end
else
if block.revoker_id.nil?
if block.updated_at > block.ends_at
if block.deactivates_at > block.ends_at
t("user_blocks.helper.short.read_html", :time => block_short_time_in_past(block.updated_at))
else
t("user_blocks.helper.short.ended")