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