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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user