aliases: retire artist aliases after 2 years.

Automatically retire artist aliases after they're more than 2 years old.
Before the rule was that artist aliases were only retired if they didn't
have any new posts in the last 2 years.
This commit is contained in:
evazion
2022-09-12 02:16:35 -05:00
parent 2c37fdf9e8
commit e1fb219738
2 changed files with 8 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ class RetireTagRelationshipsJobTest < ActiveJob::TestCase
RetireTagRelationshipsJob.perform_now
assert_equal(false, ta0.reload.is_retired?)
assert_equal(true, ta0.reload.is_retired?)
assert_equal(false, ta1.reload.is_retired?)
assert_equal(false, ta2.reload.is_retired?)
assert_equal(false, ta3.reload.is_retired?)