Allow more flexibility in InlineQuotePolicy

This commit is contained in:
tusooa 2023-07-12 09:30:43 -04:00
commit 2c70857f9f
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
6 changed files with 50 additions and 9 deletions

View file

@ -434,7 +434,7 @@ config :pleroma, :mrf_object_age,
config :pleroma, :mrf_follow_bot, follower_nickname: nil
config :pleroma, :mrf_inline_quote, prefix: "RT"
config :pleroma, :mrf_inline_quote, template: "<bdi>RT:</bdi> {url}"
config :pleroma, :rich_media,
enabled: true,

View file

@ -2994,6 +2994,24 @@ 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,
key: :modules,