From 27d8ab023b6094e6a325735aaa0af14437ccc459 Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sat, 2 Dec 2023 11:51:02 +1100 Subject: [PATCH] Add ID and URL to microformat response --- slices/micropub/queries/posts/microformat_post.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,