Merge branch 'feature/mrf-always-nsfw' into 'develop'
[akkoma] / lib / pleroma / web / common_api / utils.ex
index 8d616097694a570f01b6e382e657250a50b83486..d93c0d46e5962ba93bc2796a738ac294dbbcd656 100644 (file)
@@ -232,7 +232,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
       "cc" => cc,
       "content" => content_html,
       "summary" => cw,
-      "sensitive" => sensitive,
+      "sensitive" => !Enum.member?(["false", "False", "0", false], sensitive),
       "context" => context,
       "attachment" => attachments,
       "actor" => actor,