Add photos

This commit is contained in:
2023-02-25 14:11:34 +11:00
parent a5e2cf28c8
commit e8220805a3
5 changed files with 39 additions and 1 deletions

View File

@@ -64,7 +64,7 @@ module Adamantium
def photo_listing(limit: nil)
posts
.where(post_type: "post")
.where(post_type: ["post", "checkin"])
.where(Sequel[:photos].pg_json.array_length > 0)
.published
.combine(:tags)