From cca291ea788091f4be18a08fd57d936e8b2ed1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Fri, 4 Nov 2022 18:36:36 +0100 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20return=20an=20:ok=20in=20mark?= =?UTF-8?q?=5Fsensitive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- akkoma/akkoma.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/akkoma/akkoma.patch b/akkoma/akkoma.patch index 359c601..f425157 100644 --- a/akkoma/akkoma.patch +++ b/akkoma/akkoma.patch @@ -856,7 +856,7 @@ index 000000000..f3894c8ae +end diff --git a/lib/pleroma/web/activity_pub/mrf/require_image_description.ex b/lib/pleroma/web/activity_pub/mrf/require_image_description.ex new file mode 100644 -index 000000000..ea7c1ee68 +index 000000000..67390e613 --- /dev/null +++ b/lib/pleroma/web/activity_pub/mrf/require_image_description.ex @@ -0,0 +1,45 @@ @@ -871,12 +871,12 @@ index 000000000..ea7c1ee68 + + def mark_sensitive(object) do + object |> Map.put("sensitive", true) -+ {:ok, object} ++ object + end + + def correct_attachment(object) do + if is_valid_attachment(object) do -+ {:ok, object} ++ object + else + mark_sensitive(object) + end