summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelina Filippova <linakirsanova@gmail.com>2020-08-07 21:04:13 +0300
committerAngelina Filippova <linakirsanova@gmail.com>2020-08-07 21:04:13 +0300
commit8e1f7a3eff05a43f59f15dc6fa0483713e221fa7 (patch)
tree486a554b67550c2f0ab853a71b7921662909e1df
parent8bb54415470852f95967bc75fb8917db78eb0fbd (diff)
Add new `image` type to settings whose values are image urls
-rw-r--r--config/description.exs18
1 files changed, 10 insertions, 8 deletions
diff --git a/config/description.exs b/config/description.exs
index 7da01b175..e2f78e77d 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -951,7 +951,7 @@ config :pleroma, :config_description, [
},
%{
key: :instance_thumbnail,
- type: :string,
+ type: {:string, :image},
description:
"The instance thumbnail can be any image that represents your instance and is used by some apps or services when they display information about your instance.",
suggestions: ["/instance/thumbnail.jpeg"]
@@ -1237,7 +1237,7 @@ config :pleroma, :config_description, [
},
%{
key: :background,
- type: :string,
+ type: {:string, :image},
description:
"URL of the background, unless viewing a user profile with a background that is set",
suggestions: ["/images/city.jpg"]
@@ -1294,7 +1294,7 @@ config :pleroma, :config_description, [
},
%{
key: :logo,
- type: :string,
+ type: {:string, :image},
description: "URL of the logo, defaults to Pleroma's logo",
suggestions: ["/static/logo.png"]
},
@@ -1326,7 +1326,7 @@ config :pleroma, :config_description, [
%{
key: :nsfwCensorImage,
label: "NSFW Censor Image",
- type: :string,
+ type: {:string, :image},
description:
"URL of the image to use for hiding NSFW media attachments in the timeline",
suggestions: ["/static/img/nsfw.74818f9.png"]
@@ -1452,7 +1452,7 @@ config :pleroma, :config_description, [
},
%{
key: :default_user_avatar,
- type: :string,
+ type: {:string, :image},
description: "URL of the default user avatar",
suggestions: ["/images/avi.png"]
}
@@ -2643,7 +2643,7 @@ config :pleroma, :config_description, [
children: [
%{
key: :logo,
- type: :string,
+ type: {:string, :image},
description: "A path to a custom logo. Set it to `nil` to use the default Pleroma logo.",
suggestions: ["some/path/logo.png"]
},
@@ -3552,13 +3552,15 @@ config :pleroma, :config_description, [
key: "name",
label: "Name",
type: :string,
- description: "Name of the installed primary frontend. Valid config must include both `Name` and `Reference` values."
+ description:
+ "Name of the installed primary frontend. Valid config must include both `Name` and `Reference` values."
},
%{
key: "ref",
label: "Reference",
type: :string,
- description: "Reference of the installed primary frontend to be used. Valid config must include both `Name` and `Reference` values."
+ description:
+ "Reference of the installed primary frontend to be used. Valid config must include both `Name` and `Reference` values."
}
]
}