Add docs/Admin-API.md
[akkoma] / lib / pleroma / web / common_api / common_api.ex
index 5e58215616872b1a5f754bbca42278f7e8b80f48..085a951726ee51943211327e1ee3e61e35406f53 100644 (file)
@@ -102,7 +102,7 @@ defmodule Pleroma.Web.CommonAPI do
              attachments,
              tags,
              get_content_type(data["content_type"]),
-             data["no_attachment_links"]
+             Enum.member?([true, "true"], data["no_attachment_links"])
            ),
          context <- make_context(inReplyTo),
          cw <- data["spoiler_text"],