Consider reported screenshots for pending for moderation
This commit is contained in:
parent
cecb5f47cc
commit
9db16ab357
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ class Package < ActiveRecord::Base
|
|||
|
||||
# Return a query of all approved/public screenshots of this package
|
||||
def screenshots_pending
|
||||
self.screenshots.find_by(approved: false)
|
||||
self.screenshots.where('approved=false or markedfordelete=true')
|
||||
end
|
||||
|
||||
# Return a list of packages that have unapproved screenshots
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue