]> git.openstreetmap.org Git - rails.git/commit
Fix case when user block durations are slightly negative
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 9 Jun 2021 14:14:14 +0000 (15:14 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 9 Jun 2021 14:16:35 +0000 (15:16 +0100)
commit71be43588658a84dbf4d424a4e0084f38eaab9bf
tree2f197234b08b4dd254ad550cfe716ccbc83f910e
parent5ce14cfa4d7792346e96a3895df73e3510c936ea
Fix case when user block durations are slightly negative

The output from ActiveSupport::Duration is wildly unhelpful in those cases

Fixes #3210
app/helpers/user_blocks_helper.rb
test/helpers/user_blocks_helper_test.rb