Wrap microformat posts in items
This commit is contained in:
@@ -45,7 +45,7 @@ module Micropub
|
|||||||
end
|
end
|
||||||
|
|
||||||
def search_posts(filter:)
|
def search_posts(filter:)
|
||||||
post_repo
|
posts = post_repo
|
||||||
.search(term: filter)
|
.search(term: filter)
|
||||||
.map { |post|
|
.map { |post|
|
||||||
content = ReverseMarkdown.convert(post.content, unknown_tags: :pass_through, github_flavored: true).to_s
|
content = ReverseMarkdown.convert(post.content, unknown_tags: :pass_through, github_flavored: true).to_s
|
||||||
@@ -62,6 +62,10 @@ module Micropub
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
items: posts
|
||||||
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user