Add podcasts and map view

This commit is contained in:
2023-06-18 15:53:49 +10:00
parent 85dd61510e
commit 0cf6d0d540
17 changed files with 2558 additions and 24 deletions

15
app/repos/podcast_repo.rb Normal file
View File

@@ -0,0 +1,15 @@
module Adamantium
module Repos
class PodcastRepo < Adamantium::Repo[:podcasts]
commands :create
def listing
podcasts.order(:name).to_a
end
def delete_all
podcasts.delete
end
end
end
end

View File

@@ -118,7 +118,8 @@ module Adamantium
def places_listing(limit: nil)
posts
.where(post_type: "checkin")
.where(post_type: ["checkin", "post"])
.exclude(location: nil)
.published
.combine(:tags)
.order(Sequel.desc(:published_at))