Expose markup configuration in InstanceView
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
6e34df8955
commit
7de0b2f2c8
1 changed files with 10 additions and 1 deletions
|
@ -255,7 +255,8 @@ defp pleroma_configuration(instance) do
|
|||
birthday_required: Config.get([:instance, :birthday_required]),
|
||||
birthday_min_age: Config.get([:instance, :birthday_min_age]),
|
||||
migration_cooldown_period: Config.get([:instance, :migration_cooldown_period]),
|
||||
translation: translation_configuration()
|
||||
translation: translation_configuration(),
|
||||
markup: markup()
|
||||
},
|
||||
stats: %{mau: Pleroma.User.active_user_count()},
|
||||
vapid_public_key: Keyword.get(Pleroma.Web.Push.vapid_config(), :public_key),
|
||||
|
@ -326,4 +327,12 @@ defp contact_account(username) do
|
|||
nil
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue