logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 87353e5ad12799d12507253fe9a0363fd9f0c817
parent 8596f926543126efdb4b8cfe70beab6812824398
Author: tusooa <tusooa@kazv.moe>
Date:   Wed, 12 Jul 2023 22:07:16 -0400

Fix config descriptions for mrf inline quote

Diffstat:

Mconfig/description.exs18------------------
Mlib/pleroma/web/activity_pub/mrf/inline_quote_policy.ex12+++++++-----
2 files changed, 7 insertions(+), 23 deletions(-)

diff --git a/config/description.exs b/config/description.exs @@ -2996,24 +2996,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, key: :modules, type: :group, description: "Custom Runtime Modules", diff --git a/lib/pleroma/web/activity_pub/mrf/inline_quote_policy.ex b/lib/pleroma/web/activity_pub/mrf/inline_quote_policy.ex @@ -61,14 +61,16 @@ defmodule Pleroma.Web.ActivityPub.MRF.InlineQuotePolicy 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}"] } ] }