Check deactivates_at to report if block was read after its end date
This commit is contained in:
parent
97b14ce22a
commit
7e8fd5d7b7
2 changed files with 33 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue