From f35c815112751be382823f1da4725507c0388afd Mon Sep 17 00:00:00 2001 From: Daniel Nitsikopoulos Date: Sun, 23 Jul 2023 19:32:03 +1000 Subject: [PATCH] Remove extra properties from the config endpoint --- app/actions/site/config.rb | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/actions/site/config.rb b/app/actions/site/config.rb index 5f37c79..b9826df 100644 --- a/app/actions/site/config.rb +++ b/app/actions/site/config.rb @@ -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",