diff --git a/slices/micropub/queries/posts/microformat_post.rb b/slices/micropub/queries/posts/microformat_post.rb index 8081f37..57a33f0 100644 --- a/slices/micropub/queries/posts/microformat_post.rb +++ b/slices/micropub/queries/posts/microformat_post.rb @@ -4,7 +4,7 @@ module Micropub module Queries module Posts class MicroformatPost - include Deps["repos.post_repo"] + include Deps["settings", "repos.post_repo"] def call(url:, filter:, properties:) if url @@ -53,6 +53,8 @@ module Micropub { type: ["h-entry"], properties: { + url: ["#{settings.micropub_site_url}/post/#{post.slug}"], + uid: [post.id], published: [post.published_at], content: [content], photo: post.photos,