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.Constants do
8 const(as_public, do: "https://www.w3.org/ns/activitystreams#Public")
10 const(object_internal_fields,
20 "deleted_activity_id",
26 const(static_only_files,
28 ~w(index.html robots.txt static static-fe finmoji emoji packs sounds images instance sw.js sw-pleroma.js favicon.png schemas doc embed.js embed.css)
31 const(status_updatable_fields,
45 const(updatable_object_types,
67 # basic regex, just there to weed out potential mistakes
68 # https://datatracker.ietf.org/doc/html/rfc2045#section-5.1
70 do: ~r/^[^[:cntrl:] ()<>@,;:\\"\/\[\]?=]+\/[^[:cntrl:] ()<>@,;:\\"\/\[\]?=]+(; .*)?$/