X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f721f94d42efc1183960c240c72319ac98111307..dcaf21602c4743979fa1f138553198997577b7a1:/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