Expose markup configuration in InstanceView
Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
This commit is contained in:
parent
254b31bf1c
commit
890ac8ff86
1 changed files with 10 additions and 1 deletions
|
|
@ -270,7 +270,8 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
|
||||||
post_formats: Config.get([:instance, :allowed_post_formats]),
|
post_formats: Config.get([:instance, :allowed_post_formats]),
|
||||||
birthday_required: Config.get([:instance, :birthday_required]),
|
birthday_required: Config.get([:instance, :birthday_required]),
|
||||||
birthday_min_age: Config.get([:instance, :birthday_min_age]),
|
birthday_min_age: Config.get([:instance, :birthday_min_age]),
|
||||||
translation: supported_languages()
|
translation: supported_languages(),
|
||||||
|
markup: markup()
|
||||||
},
|
},
|
||||||
stats: %{mau: Pleroma.User.active_user_count()},
|
stats: %{mau: Pleroma.User.active_user_count()},
|
||||||
vapid_public_key: Keyword.get(Pleroma.Web.Push.vapid_config(), :public_key)
|
vapid_public_key: Keyword.get(Pleroma.Web.Push.vapid_config(), :public_key)
|
||||||
|
|
@ -321,4 +322,12 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
|
||||||
target_languages: target_languages
|
target_languages: target_languages
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
defp markup() do
|
||||||
|
%{
|
||||||
|
allow_inline_images: Config.get([:markup, :allow_inline_images]),
|
||||||
|
allow_headings: Config.get([:markup, :allow_headings]),
|
||||||
|
allow_tables: Config.get([:markup, :allow_tables])
|
||||||
|
}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue