From 1a7bfca9bd0f132a9b5cdba1c8dea7129a6ff810 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Thu, 4 Jan 2018 13:10:15 -0800 Subject: [PATCH] fix reference to config.image_server_host --- app/models/post.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/post.rb b/app/models/post.rb index b108a3130..d00551635 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -187,13 +187,13 @@ class Post < ApplicationRecord def open_graph_image_url if is_image? if has_large? - if Danbooru.config.image_server_host(self) =~ /http/ + if Danbooru.config.build_large_file_url(self) =~ /http/ large_file_url else "http://#{Danbooru.config.hostname}#{large_file_url}" end else - if Danbooru.config.image_server_host(self) =~ /http/ + if Danbooru.config.build_file_url(self) =~ /http/ file_url else "http://#{Danbooru.config.hostname}#{file_url}"