projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit '07fed0fda2473fc4e1e3b01e863217391fd2902f'; commit 'e3173a279dad89dfce6e...
[akkoma]
/
lib
/
pleroma
/
web
/
twitter_api
/
views
/
util_view.ex
diff --git
a/lib/pleroma/web/twitter_api/views/util_view.ex
b/lib/pleroma/web/twitter_api/views/util_view.ex
index d3bdb4f6230662f7cf62e57672dc352729ebc145..9b13c09b302efd6388527fb1a97fb86b8ada1142 100644
(file)
--- a/
lib/pleroma/web/twitter_api/views/util_view.ex
+++ b/
lib/pleroma/web/twitter_api/views/util_view.ex
@@
-1,10
+1,11
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.TwitterAPI.UtilView do
use Pleroma.Web, :view
import Phoenix.HTML.Form
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.TwitterAPI.UtilView do
use Pleroma.Web, :view
import Phoenix.HTML.Form
+ alias Pleroma.Config
alias Pleroma.Web
def status_net_config(instance) do
alias Pleroma.Web
def status_net_config(instance) do
@@
-19,4
+20,9
@@
defmodule Pleroma.Web.TwitterAPI.UtilView do
</config>
"""
end
</config>
"""
end
+
+ def render("frontend_configurations.json", _) do
+ Config.get(:frontend_configurations, %{})
+ |> Enum.into(%{})
+ end
end
end