}
]
},
- %{
- group: :pleroma,
- key: :extensions,
- type: :group,
- description: "Pleroma-specific extensions",
- children: [
- %{
- key: :output_relationships_in_statuses_by_default,
- type: :beeolean,
- description:
- "If `true`, outputs account/pleroma/relationship map for each rendered status / notification (for all clients). " <>
- "If `false`, outputs the above only if `with_relationships` param is tru-ish " <>
- "(that breaks compatibility with older PleromaFE versions which do not send this param but expect the output)."
- }
- ]
- },
%{
group: :pleroma,
key: Pleroma.Uploaders.Local,
%{
key: :reject,
type: {:list, :string},
- description: "List of instances to reject any activities from",
+ description: "List of instances to reject activities from (except deletes)",
suggestions: ["example.com", "*.example.com"]
},
%{
key: :accept,
type: {:list, :string},
- description: "List of instances to accept any activities from",
+ description: "List of instances to only accept activities from (except deletes)",
suggestions: ["example.com", "*.example.com"]
},
%{
type: {:list, :string},
description: "List of instances to strip banners from",
suggestions: ["example.com", "*.example.com"]
+ },
+ %{
+ key: :reject_deletes,
+ type: {:list, :string},
+ description: "List of instances to reject deletions from",
+ suggestions: ["example.com", "*.example.com"]
}
]
},
children: [
%{
key: :active,
+ label: "Enabled",
type: :boolean,
description: "Globally enable or disable digest emails"
},
]
}
]
+ },
+ %{
+ group: :pleroma,
+ key: Pleroma.Web.ApiSpec.CastAndValidate,
+ type: :group,
+ children: [
+ %{
+ key: :strict,
+ type: :boolean,
+ description:
+ "Enables strict input validation (useful in development, not recommended in production)",
+ suggestions: [false]
+ }
+ ]
}
]