about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-01-13 23:12:30 -0600
committermultiple creatures <dev@multiple-creature.party>2020-01-13 23:12:30 -0600
commitcb484d17d9d3a4f9dd3cb9f4ab14473dad6479c2 (patch)
tree2ae94a4ade101e0fabcb1c7d8eeccccfce80ecff
parent0b2b252c6f2e816a67d121a132e8b6fae9b5a3d8 (diff)
make `:m` in `defed_in` & `delete_in` mean minutes not months
-rw-r--r--app/lib/bangtags.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb
index 42dd661e6..abc49aee9 100644
--- a/app/lib/bangtags.rb
+++ b/app/lib/bangtags.rb
@@ -718,7 +718,7 @@ class Bangtags
             unit = cmd[2].present? ? cmd[2].downcase : 'minutes'
           end
           delete_after = case unit
-                         when 'min', 'mins', 'minute', 'minutes'
+                         when 'm', 'min', 'mins', 'minute', 'minutes'
                            i.minutes
                          when 'h', 'hr', 'hrs', 'hour', 'hours'
                            i.hours
@@ -726,7 +726,7 @@ class Bangtags
                            i.days
                          when 'w', 'wk', 'wks', 'week', 'weeks'
                            i.weeks
-                         when 'm', 'mn', 'mns', 'month', 'months'
+                         when 'mn', 'mns', 'month', 'months'
                            i.months
                          when 'y', 'yr', 'yrs', 'year', 'years'
                            i.years
@@ -762,7 +762,7 @@ class Bangtags
             unit = cmd[2].present? ? cmd[2].downcase : 'minutes'
           end
           defederate_after = case unit
-                         when 'min', 'mins', 'minute', 'minutes'
+                         when 'm', 'min', 'mins', 'minute', 'minutes'
                            i.minutes
                          when 'h', 'hr', 'hrs', 'hour', 'hours'
                            i.hours
@@ -770,7 +770,7 @@ class Bangtags
                            i.days
                          when 'w', 'wk', 'wks', 'week', 'weeks'
                            i.weeks
-                         when 'm', 'mn', 'mns', 'month', 'months'
+                         when 'mn', 'mns', 'month', 'months'
                            i.months
                          when 'y', 'yr', 'yrs', 'year', 'years'
                            i.years