Expose instance feed config option in the API and show it on About page
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -63,6 +63,7 @@ defmodule Mobilizon.GraphQL.Schema.ConfigType do
|
||||
field(:rules, :string, description: "The instance's rules")
|
||||
|
||||
field(:auth, :auth, description: "The instance auth methods")
|
||||
field(:instance_feeds, :instance_feeds, description: "The instance's feed settings")
|
||||
end
|
||||
|
||||
@desc """
|
||||
@@ -294,6 +295,10 @@ defmodule Mobilizon.GraphQL.Schema.ConfigType do
|
||||
field(:banner, :integer, description: "The banner limitation, in bytes")
|
||||
end
|
||||
|
||||
object :instance_feeds do
|
||||
field(:enabled, :boolean, description: "Whether the instance-wide feeds are enabled")
|
||||
end
|
||||
|
||||
object :config_queries do
|
||||
@desc "Get the instance config"
|
||||
field :config, :config do
|
||||
|
||||
Reference in New Issue
Block a user