Fix tags index page

This commit is contained in:
2023-04-30 18:49:04 +10:00
parent f6fbd9e567
commit 9e1bf6e6d8
3 changed files with 7 additions and 1 deletions

View File

@@ -9,7 +9,9 @@ module Adamantium
expose :posts do |slug:|
post_tag_repo.posts_tagged(tag: slug).map do |post|
Decorators::Posts::Decorator.new(post)
post.url ?
Decorators::Bookmarks::Decorator.new(post) :
Decorators::Posts::Decorator.new(post)
end
end