delegate post url generation to config
This commit is contained in:
@@ -217,8 +217,12 @@ module Danbooru
|
||||
"albert"
|
||||
end
|
||||
|
||||
def image_server_host(post)
|
||||
""
|
||||
def build_file_url(post)
|
||||
"/data/#{post.file_path_prefix}/#{post.md5}.#{post.file_ext}"
|
||||
end
|
||||
|
||||
def build_large_file_url(post)
|
||||
"/data/#{post.file_path_prefix}#{Danbooru.config.large_image_prefix}/#{post.md5}.#{post.large_file_ext}"
|
||||
end
|
||||
|
||||
#TAG CONFIGURATION
|
||||
|
||||
Reference in New Issue
Block a user