fix hostname

This commit is contained in:
r888888888
2017-09-08 17:15:47 -07:00
parent ff6a64f0fc
commit 60ea6d04f2

View File

@@ -202,7 +202,7 @@ class Upload < ApplicationRecord
def notify_cropper(post)
if Danbooru.config.aws_sqs_cropper_url && is_image?
sqs = SqsService.new(Danbooru.config.aws_sqs_cropper_url)
sqs.send_message("#{post.id},https://#{Danbooru.config.hostnames.first}/data/#{post.md5}.#{post.file_ext}")
sqs.send_message("#{post.id},https://#{Danbooru.config.hostname}/data/#{post.md5}.#{post.file_ext}")
end
end
end