posts: use storage manager to build file urls.

This commit is contained in:
evazion
2018-03-19 23:24:32 -05:00
parent c76463f34d
commit 6d0d1a3ce9
2 changed files with 13 additions and 40 deletions

View File

@@ -257,13 +257,6 @@ module Danbooru
# end
end
def build_file_url(post)
"/data/#{post.file_path_prefix}/#{post.md5}.#{post.file_ext}"
end
def build_large_file_url(post)
"/data/sample/#{post.file_path_prefix}#{Danbooru.config.large_image_prefix}#{post.md5}.#{post.large_file_ext}"
end
#TAG CONFIGURATION