fixes #398
This commit is contained in:
@@ -8,7 +8,7 @@ class Comment < ActiveRecord::Base
|
|||||||
after_save :update_last_commented_at
|
after_save :update_last_commented_at
|
||||||
attr_accessible :body, :post_id
|
attr_accessible :body, :post_id
|
||||||
attr_accessor :do_not_bump_post
|
attr_accessor :do_not_bump_post
|
||||||
|
|
||||||
module SearchMethods
|
module SearchMethods
|
||||||
def recent
|
def recent
|
||||||
reorder("comments.id desc").limit(6)
|
reorder("comments.id desc").limit(6)
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ class Post < ActiveRecord::Base
|
|||||||
|
|
||||||
def preview_file_url
|
def preview_file_url
|
||||||
if is_flash?
|
if is_flash?
|
||||||
return "/data/preview/150x150-flash.png"
|
return "/images/download-preview.png"
|
||||||
end
|
end
|
||||||
|
|
||||||
if Danbooru.config.ssd_path
|
if Danbooru.config.ssd_path
|
||||||
|
|||||||
BIN
public/images/download-preview.png
Normal file
BIN
public/images/download-preview.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Reference in New Issue
Block a user