X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8090e086daad67eac711ad6fd6a5eba6f28d44fd..35fbcf28154b6f15f697018016fbabc952e018a5:/script/deliver-message?ds=inline 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