Insert text representation of hashtags into object["hashtags"]
[akkoma] / lib / pleroma / constants.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
4
5 defmodule Pleroma.Constants do
6 use Const
7
8 const(as_public, do: "https://www.w3.org/ns/activitystreams#Public")
9
10 const(object_internal_fields,
11 do: [
12 "reactions",
13 "reaction_count",
14 "likes",
15 "like_count",
16 "announcements",
17 "announcement_count",
18 "emoji",
19 "context_id",
20 "deleted_activity_id",
21 "pleroma_internal",
22 "hashtags"
23 ]
24 )
25
26 const(static_only_files,
27 do:
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)
29 )
30
31 def as_local_public, do: Pleroma.Web.base_url() <> "/#Public"
32 end