projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ChatMessages: Fix pagination headers.
[akkoma]
/
lib
/
pleroma
/
docs
/
json.ex
diff --git
a/lib/pleroma/docs/json.ex
b/lib/pleroma/docs/json.ex
index feeb4320e62b10ed56b9160eea548fe83fe9c77d..a583e2a5b7d31daa8734f2ff1896d7254a8de02c 100644
(file)
--- a/
lib/pleroma/docs/json.ex
+++ b/
lib/pleroma/docs/json.ex
@@
-1,3
+1,7
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2020 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Docs.JSON do
@behaviour Pleroma.Docs.Generator
@external_resource "config/description.exs"
defmodule Pleroma.Docs.JSON do
@behaviour Pleroma.Docs.Generator
@external_resource "config/description.exs"
@@
-7,7
+11,11
@@
defmodule Pleroma.Docs.JSON do
@spec compile :: :ok
def compile do
@spec compile :: :ok
def compile do
- :persistent_term.put(@term, Pleroma.Docs.Generator.convert_to_strings(@raw_descriptions))
+ descriptions =
+ Pleroma.Web.ActivityPub.MRF.config_descriptions()
+ |> Enum.reduce(@raw_descriptions, fn description, acc -> [description | acc] end)
+
+ :persistent_term.put(@term, Pleroma.Docs.Generator.convert_to_strings(descriptions))
end
@spec compiled_descriptions :: Map.t()
end
@spec compiled_descriptions :: Map.t()