X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f721f94d42efc1183960c240c72319ac98111307..7a85ce0c12cf4d75561c35e2ff28e718a390d622:/script/deliver-message diff --git a/script/deliver-message b/script/deliver-message index 6907637a6..71fa4f2f1 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.join(File.dirname(__FILE__), "..", "config", "environment") if recipient = ARGV[0].match(/^c-(\d+)-(\d+)-(.*)$/) comment = DiaryComment.find(recipient[1]) @@ -33,6 +33,6 @@ mail = Mail.new($stdin.read message = Message.from_mail(mail, from, to) message.save! -Notifier.message_notification(message).deliver +UserMailer.message_notification(message).deliver exit 0