Remove extra properties from the config endpoint

This commit is contained in:
2023-07-23 19:32:03 +10:00
parent 9cce75bf4e
commit f35c815112

View File

@@ -11,16 +11,16 @@ module Adamantium
res.content_type = "Application/JSON"
res.body = {
"media-endpoint" => settings.micropub_media_endpoint,
"destination" => [
{uid: settings.micropub_site_id, name: settings.micropub_site_name}
],
"post-types" => [
{type: "note", name: "Note", properties: %w[content photo category]},
{type: "article", name: "Article", properties: %w[name content category]},
{type: "photo", name: "Photo", properties: %w[name photo content category]},
{type: "video", name: "Video", properties: %w[name video content category]},
{type: "bookmark", name: "Bookmark", properties: %w[name content category]}
],
# "destination" => [
# {uid: settings.micropub_site_id, name: settings.micropub_site_name}
# ],
# "post-types" => [
# {type: "note", name: "Note", properties: %w[content photo category]},
# {type: "article", name: "Article", properties: %w[name content category]},
# {type: "photo", name: "Photo", properties: %w[name photo content category]},
# {type: "video", name: "Video", properties: %w[name video content category]},
# {type: "bookmark", name: "Bookmark", properties: %w[name content category]}
# ],
"syndicate-to" => [
{
uid: "https://social.dnitza.com",