Ensure we can update contentMap on update
[akkoma] / lib / pleroma / constants.ex
1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2021 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 "generator"
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 const(status_updatable_fields,
32 do: [
33 "source",
34 "tag",
35 "updated",
36 "emoji",
37 "content",
38 "summary",
39 "sensitive",
40 "attachment",
41 "generator",
42 "contentMap"
43 ]
44 )
45
46 const(updatable_object_types,
47 do: [
48 "Note",
49 "Question",
50 "Audio",
51 "Video",
52 "Event",
53 "Article",
54 "Page"
55 ]
56 )
57
58 const(actor_types,
59 do: [
60 "Application",
61 "Group",
62 "Organization",
63 "Person",
64 "Service"
65 ]
66 )
67 end