From b728fddf9a9d4c391bfc6f4a96b9ae7c7173cf65 Mon Sep 17 00:00:00 2001 From: Inhji Date: Thu, 8 Jun 2023 09:21:33 +0200 Subject: [PATCH] add post-types --- lib/chiya_web/indie/micropub_handler.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/chiya_web/indie/micropub_handler.ex b/lib/chiya_web/indie/micropub_handler.ex index ab41ed8..b84f4e9 100644 --- a/lib/chiya_web/indie/micropub_handler.ex +++ b/lib/chiya_web/indie/micropub_handler.ex @@ -56,7 +56,12 @@ defmodule ChiyaWeb.Indie.MicropubHandler do {:ok, %{ "destination" => [], - "post-types" => [], + "post-types" => [ + %{ + "type" => "note", + "name" => "Note" + } + ], "channels" => Enum.map(channels, fn c -> %{