2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-30 13:37:48 +00:00

_url is CONFIG['url_base'], not Rails.root, duh.

This commit is contained in:
Edho Arief
2012-12-27 22:24:01 +07:00
parent e851c3bcf5
commit b58428155c
3 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ module PostImageStoreMethods
def preview_url
if status == "deleted"
"#{Rails.root}/public/deleted-preview.png"
CONFIG['url_base'] + "/public/deleted-preview.png"
elsif image?
CONFIG["url_base"] + "/data/preview/#{md5}.jpg"
else

View File

@@ -70,7 +70,7 @@ module PostImageStoreMethods
# end
if status == "deleted"
"#{Rails.root}/public/deleted-preview.png"
CONFIG['url_base'] + "/public/deleted-preview.png"
elsif self.image?
CONFIG["url_base"] + "/data/preview/#{md5}.jpg"
else

View File

@@ -30,7 +30,7 @@ module PostImageStoreMethods
def preview_url
if status == "deleted"
"#{Rails.root}/public/deleted-preview.png"
CONFIG['url_base'] + "/public/deleted-preview.png"
elsif image?
CONFIG["url_base"] + "/data/preview/#{file_hierarchy}/#{md5}.jpg"
else