2019-07-29 03:43:19 +01:00
|
|
|
# Pleroma: A lightweight social networking server
|
2021-01-13 06:49:20 +00:00
|
|
|
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
|
2019-07-29 03:43:19 +01:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
defmodule Pleroma.Constants do
|
|
|
|
use Const
|
|
|
|
|
|
|
|
const(as_public, do: "https://www.w3.org/ns/activitystreams#Public")
|
2019-09-18 17:24:20 +01:00
|
|
|
|
|
|
|
const(object_internal_fields,
|
|
|
|
do: [
|
2019-09-30 12:57:54 +01:00
|
|
|
"reactions",
|
2019-09-30 14:13:05 +01:00
|
|
|
"reaction_count",
|
2019-09-18 17:24:20 +01:00
|
|
|
"likes",
|
|
|
|
"like_count",
|
|
|
|
"announcements",
|
|
|
|
"announcement_count",
|
|
|
|
"emoji",
|
|
|
|
"context_id",
|
2020-05-13 22:14:24 +01:00
|
|
|
"deleted_activity_id",
|
2021-02-12 19:05:12 +00:00
|
|
|
"pleroma_internal",
|
2021-03-01 17:29:10 +00:00
|
|
|
"generator"
|
2019-09-18 17:24:20 +01:00
|
|
|
]
|
|
|
|
)
|
2020-05-01 20:15:43 +01:00
|
|
|
|
|
|
|
const(static_only_files,
|
|
|
|
do:
|
2023-06-01 00:42:08 +01:00
|
|
|
~w(index.html robots.txt static static-fe finmoji emoji packs sounds images instance embed sw.js sw-pleroma.js favicon.png schemas doc)
|
2020-05-01 20:15:43 +01:00
|
|
|
)
|
2022-09-06 20:24:02 +01:00
|
|
|
|
|
|
|
const(status_updatable_fields,
|
|
|
|
do: [
|
|
|
|
"source",
|
|
|
|
"tag",
|
|
|
|
"updated",
|
|
|
|
"emoji",
|
|
|
|
"content",
|
|
|
|
"summary",
|
|
|
|
"sensitive",
|
|
|
|
"attachment",
|
2023-02-23 11:00:55 +00:00
|
|
|
"generator",
|
|
|
|
"contentMap"
|
2022-09-06 20:24:02 +01:00
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
const(updatable_object_types,
|
|
|
|
do: [
|
|
|
|
"Note",
|
|
|
|
"Question",
|
|
|
|
"Audio",
|
|
|
|
"Video",
|
|
|
|
"Event",
|
|
|
|
"Article",
|
|
|
|
"Page"
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
const(actor_types,
|
|
|
|
do: [
|
|
|
|
"Application",
|
|
|
|
"Group",
|
|
|
|
"Organization",
|
|
|
|
"Person",
|
|
|
|
"Service"
|
|
|
|
]
|
|
|
|
)
|
2019-07-29 03:43:19 +01:00
|
|
|
end
|