return approved screenshots only in public json. fixes #96

This commit is contained in:
Christoph Haas 2026-02-04 00:09:43 +01:00
parent e2473ff511
commit 9d0009b129
3 changed files with 16 additions and 5 deletions

View file

@ -8,7 +8,7 @@ class JsonController < ApplicationController
# JSON information on all packages
def packages
expires_in 1.days, public: true
@p = Package.all
@p = Package.with_public_screenshots
end
# JSON information on all screenshots