Add ID and URL to microformat response
This commit is contained in:
@@ -4,7 +4,7 @@ module Micropub
|
|||||||
module Queries
|
module Queries
|
||||||
module Posts
|
module Posts
|
||||||
class MicroformatPost
|
class MicroformatPost
|
||||||
include Deps["repos.post_repo"]
|
include Deps["settings", "repos.post_repo"]
|
||||||
|
|
||||||
def call(url:, filter:, properties:)
|
def call(url:, filter:, properties:)
|
||||||
if url
|
if url
|
||||||
@@ -53,6 +53,8 @@ module Micropub
|
|||||||
{
|
{
|
||||||
type: ["h-entry"],
|
type: ["h-entry"],
|
||||||
properties: {
|
properties: {
|
||||||
|
url: ["#{settings.micropub_site_url}/post/#{post.slug}"],
|
||||||
|
uid: [post.id],
|
||||||
published: [post.published_at],
|
published: [post.published_at],
|
||||||
content: [content],
|
content: [content],
|
||||||
photo: post.photos,
|
photo: post.photos,
|
||||||
|
Reference in New Issue
Block a user