mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Fix config descriptions for mrf inline quote
This commit is contained in:
parent
8596f92654
commit
87353e5ad1
2 changed files with 7 additions and 23 deletions
|
@ -2994,24 +2994,6 @@ config :pleroma, :config_description, [
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
%{
|
|
||||||
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,
|
group: :pleroma,
|
||||||
key: :modules,
|
key: :modules,
|
||||||
|
|
|
@ -61,14 +61,16 @@ defmodule Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy do
|
||||||
%{
|
%{
|
||||||
key: :mrf_inline_quote,
|
key: :mrf_inline_quote,
|
||||||
related_policy: "Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy",
|
related_policy: "Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy",
|
||||||
label: "MRF Inline Quote",
|
label: "MRF Inline Quote Policy",
|
||||||
description: "Force quote post URLs inline",
|
type: :group,
|
||||||
|
description: "Force quote url to appear in post content.",
|
||||||
children: [
|
children: [
|
||||||
%{
|
%{
|
||||||
key: :prefix,
|
key: :template,
|
||||||
type: :string,
|
type: :string,
|
||||||
description: "Prefix before the link",
|
description:
|
||||||
suggestions: ["RT", "QT", "RE", "RN"]
|
"The template to append to the post. `{url}` will be replaced with the actual link to the quoted post.",
|
||||||
|
suggestions: ["<bdi>RT:</bdi> {url}"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue