Show only approved screenshots on title page
This commit is contained in:
parent
1c3f692ec0
commit
83765bec1b
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ class Screenshot < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.newest_upload
|
def self.newest_upload
|
||||||
self.order(updated_at: :desc).first
|
self.order(updated_at: :desc).where(approved: true).first
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.approved
|
def self.approved
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue