aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/constants.ex
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-07-29 02:43:19 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-07-29 02:43:19 +0000
commitb93498eb5289dc92587b77c316ed9f697bb9e5c8 (patch)
tree111e1e9af9aa8c2ea40989e1897320b34c796ace /lib/pleroma/constants.ex
parent9d78b3b281ff7f758d4e0dce19fd74d938e47ccc (diff)
downloadpleroma-b93498eb5289dc92587b77c316ed9f697bb9e5c8.tar.gz
constants: add as_public constant and use it everywhere
Diffstat (limited to 'lib/pleroma/constants.ex')
-rw-r--r--lib/pleroma/constants.ex9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/pleroma/constants.ex b/lib/pleroma/constants.ex
new file mode 100644
index 000000000..ef1418543
--- /dev/null
+++ b/lib/pleroma/constants.ex
@@ -0,0 +1,9 @@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
+defmodule Pleroma.Constants do
+ use Const
+
+ const(as_public, do: "https://www.w3.org/ns/activitystreams#Public")
+end