]> git.openstreetmap.org Git - rails.git/commitdiff
Ignore emails from inactive users
authorTom Hughes <tom@compton.nu>
Fri, 7 Aug 2020 16:19:49 +0000 (17:19 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 7 Aug 2020 16:19:49 +0000 (17:19 +0100)
Fixes #2758

script/deliver-message

index ffb23ef116937b33b983198138a736e3c02f4625..6907637a67d532623482883f1bb5c93fbf836e0d 100755 (executable)
@@ -20,6 +20,7 @@ else
   exit 0
 end
 
+exit 0 unless from.active?
 exit 0 unless token == digest[0, 6]
 exit 0 if date < 1.month.ago