Fix config descriptions for mrf inline quote

This commit is contained in:
tusooa 2023-07-12 22:07:16 -04:00
parent 8596f92654
commit 87353e5ad1
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51
2 changed files with 7 additions and 23 deletions

View File

@ -2994,24 +2994,6 @@
}
]
},
%{
group: :pleroma,
key: :mrf_inline_quote,
tab: :mrf,
related_policy: "Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy",
label: "MRF Inline Quote Policy",
type: :group,
description: "Force quote url to appear in post content.",
children: [
%{
key: :template,
type: :string,
description:
"The template to append to the post. `{url}` will be replaced with the actual link to the quoted post.",
suggestions: ["<bdi>RT:</bdi> {url}"]
}
]
},
%{
group: :pleroma,
key: :modules,

View File

@ -61,14 +61,16 @@ def config_description do
%{
key: :mrf_inline_quote,
related_policy: "Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy",
label: "MRF Inline Quote",
description: "Force quote post URLs inline",
label: "MRF Inline Quote Policy",
type: :group,
description: "Force quote url to appear in post content.",
children: [
%{
key: :prefix,
key: :template,
type: :string,
description: "Prefix before the link",
suggestions: ["RT", "QT", "RE", "RN"]
description:
"The template to append to the post. `{url}` will be replaced with the actual link to the quoted post.",
suggestions: ["<bdi>RT:</bdi> {url}"]
}
]
}