diff options
author | Alex Gleason <alex@alexgleason.me> | 2021-05-03 14:43:28 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2021-05-03 14:43:28 -0500 |
commit | c186b059a77bf6cece831887948e23ee95222a1a (patch) | |
tree | 3a3a052f8c76b99e44ea5eb25d6b6bd659af23dc /lib/pleroma/web/common_api/utils.ex | |
parent | c80b1aaf514dec6b538a9833d48df027708b6b4d (diff) | |
parent | 377f84f3678f9c2541fbd4a200cd93c5ab0dea24 (diff) | |
download | pleroma-c186b059a77bf6cece831887948e23ee95222a1a.tar.gz |
Merge remote-tracking branch 'pleroma/develop' into dont-crash-email-settings
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 9587dfa25..4e6a3feb0 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -217,7 +217,6 @@ defmodule Pleroma.Web.CommonAPI.Utils do draft.status |> format_input(content_type, options) |> maybe_add_attachments(draft.attachments, attachment_links) - |> maybe_add_nsfw_tag(draft.params) end defp get_content_type(content_type) do @@ -228,13 +227,6 @@ defmodule Pleroma.Web.CommonAPI.Utils do end end - defp maybe_add_nsfw_tag({text, mentions, tags}, %{"sensitive" => sensitive}) - when sensitive in [true, "True", "true", "1"] do - {text, mentions, [{"#nsfw", "nsfw"} | tags]} - end - - defp maybe_add_nsfw_tag(data, _), do: data - def make_context(_, %Participation{} = participation) do Repo.preload(participation, :conversation).conversation.ap_id end |