update aws gem, stub in rake tasks for s3

This commit is contained in:
r888888888
2017-02-08 13:31:32 -08:00
parent b57b54113f
commit f0a8598ba2
3 changed files with 100 additions and 27 deletions

View File

@@ -105,11 +105,11 @@ class Post < ActiveRecord::Base
end
def file_url
if cdn_hosted?
Danbooru.config.danbooru_s3_base_url + "/#{file_path_prefix}#{md5}.#{file_ext}"
else
# if cdn_hosted?
# Danbooru.config.danbooru_s3_base_url + "/#{file_path_prefix}#{md5}.#{file_ext}"
# else
"/data/#{seo_tag_string}#{file_path_prefix}#{md5}.#{file_ext}"
end
# end
end
def large_file_url