1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 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
10 def status_net_config(instance) do
14 <name>#{Keyword.get(instance, :name)}</name>
15 <site>#{Web.base_url()}</site>
16 <textlimit>#{Keyword.get(instance, :limit)}</textlimit>
17 <closed>#{!Keyword.get(instance, :registrations_open)}</closed>