X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f721f94d42efc1183960c240c72319ac98111307..be541bcab21487560d4974215bd35be74012c492:/script/deliver-message?ds=sidebyside 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