X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/72ce4bc922b0ee771542845f4d072400d732c081..c9893e186b32bfd8e8ee8f00e78258387f4aac9c:/script/deliver-message diff --git a/script/deliver-message b/script/deliver-message index e713b2cfc..04dcb881b 100755 --- a/script/deliver-message +++ b/script/deliver-message @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require File.dirname(__FILE__) + '/../config/environment' +require File.dirname(__FILE__) + "/../config/environment" exit 0 unless recipient = ARGV[0].match(/^([cm])-(\d+)-(.*)$/) @@ -18,7 +18,7 @@ else to = message.sender end -exit 0 unless recipient[3] == digest[0,6] +exit 0 unless recipient[3] == digest[0, 6] exit 0 if date < 1.month.ago message.update_attribute(:message_read, true) if message