aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHaelwenn <contact+git.pleroma.social@hacktivis.me>2020-05-20 10:53:54 +0000
committerHaelwenn <contact+git.pleroma.social@hacktivis.me>2020-05-20 10:53:54 +0000
commit94ba5a780212920a1d4b303c3523f66ca0147a67 (patch)
treea64b6c0dc26b6c5bd5ba388dd0bf5edbeacddbd3 /lib
parent6dd1575c64ccc2ffe82155f70935b2aa58d22684 (diff)
parent2a74565090ebd7107e1419b4a56f6c6aa4a06ea1 (diff)
downloadpleroma-94ba5a780212920a1d4b303c3523f66ca0147a67.tar.gz
Merge branch 'exposed-background-image' into 'develop'
InstanceView: Expose background image link. See merge request pleroma/pleroma!2545
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/api_spec/operations/instance_operation.ex1
-rw-r--r--lib/pleroma/web/mastodon_api/views/instance_view.ex1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/operations/instance_operation.ex b/lib/pleroma/web/api_spec/operations/instance_operation.ex
index 880bd3f1b..9d189d029 100644
--- a/lib/pleroma/web/api_spec/operations/instance_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/instance_operation.ex
@@ -130,6 +130,7 @@ defmodule Pleroma.Web.ApiSpec.InstanceOperation do
example: %{
"avatar_upload_limit" => 2_000_000,
"background_upload_limit" => 4_000_000,
+ "background_image" => "/static/image.png",
"banner_upload_limit" => 4_000_000,
"description" => "A Pleroma instance, an alternative fediverse server",
"email" => "lain@lain.com",
diff --git a/lib/pleroma/web/mastodon_api/views/instance_view.ex b/lib/pleroma/web/mastodon_api/views/instance_view.ex
index a329ffc28..8088306c3 100644
--- a/lib/pleroma/web/mastodon_api/views/instance_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/instance_view.ex
@@ -33,6 +33,7 @@ defmodule Pleroma.Web.MastodonAPI.InstanceView do
avatar_upload_limit: Keyword.get(instance, :avatar_upload_limit),
background_upload_limit: Keyword.get(instance, :background_upload_limit),
banner_upload_limit: Keyword.get(instance, :banner_upload_limit),
+ background_image: Keyword.get(instance, :background_image),
pleroma: %{
metadata: %{
features: features(),