2019-07-29 04:43:19 +02:00
|
|
|
# Pleroma: A lightweight social networking server
|
2020-03-03 23:44:49 +01:00
|
|
|
# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
|
2019-07-29 04:43:19 +02: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 18:24:20 +02:00
|
|
|
|
|
|
|
const(object_internal_fields,
|
|
|
|
do: [
|
2019-09-30 13:57:54 +02:00
|
|
|
"reactions",
|
2019-09-30 15:13:05 +02:00
|
|
|
"reaction_count",
|
2019-09-18 18:24:20 +02:00
|
|
|
"likes",
|
|
|
|
"like_count",
|
|
|
|
"announcements",
|
|
|
|
"announcement_count",
|
|
|
|
"emoji",
|
|
|
|
"context_id",
|
2020-05-13 23:14:24 +02:00
|
|
|
"deleted_activity_id",
|
2020-12-28 13:02:16 +01:00
|
|
|
"pleroma_internal"
|
2019-09-18 18:24:20 +02:00
|
|
|
]
|
|
|
|
)
|
2020-05-01 21:15:43 +02:00
|
|
|
|
|
|
|
const(static_only_files,
|
|
|
|
do:
|
2020-06-01 15:38:57 +02:00
|
|
|
~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)
|
2020-05-01 21:15:43 +02:00
|
|
|
)
|
2020-10-15 17:07:00 +02:00
|
|
|
|
|
|
|
def as_local_public, do: Pleroma.Web.base_url() <> "/#Public"
|
2019-07-29 04:43:19 +02:00
|
|
|
end
|