Add statuses

This commit is contained in:
2023-02-27 21:02:38 +11:00
parent 23d03d2be1
commit f1c3263922
10 changed files with 81 additions and 2 deletions

View File

@@ -22,6 +22,10 @@ module Adamantium
end
end
expose :latest_status do
Decorators::Posts::Decorator.new(post_repo.latest_status)
end
expose :last_location do
Decorators::Posts::Decorator.new(post_repo.last_location)
end

View File

@@ -0,0 +1,15 @@
module Adamantium
module Views
module Statuses
class Index < Adamantium::View
include Deps["repos.post_repo"]
expose :posts do
post_repo.statuses_listing.map do |post|
Decorators::Posts::Decorator.new(post)
end
end
end
end
end
end