1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Web.TwitterAPI.UtilView do
8 import Phoenix.HTML.Form
9 import Phoenix.HTML.Link
11 alias Pleroma.Web.Endpoint
12 alias Pleroma.Web.Gettext
14 def status_net_config(instance) do
18 <name>#{Keyword.get(instance, :name)}</name>
19 <site>#{Endpoint.url()}</site>
20 <textlimit>#{Keyword.get(instance, :limit)}</textlimit>
21 <closed>#{!Keyword.get(instance, :registrations_open)}</closed>
27 def render("frontend_configurations.json", _) do
28 Config.get(:frontend_configurations, %{})