Resolve merge conflicts and remove IO.inspects
[akkoma] / lib / pleroma / web / common_api / common_api.ex
index 5a312d673fe9cd793c235d0e1b018412d029cba6..bc8f80389526a221286c0a18327807e02b302992 100644 (file)
@@ -154,6 +154,7 @@ defmodule Pleroma.Web.CommonAPI do
              data,
              visibility
            ),
+         {poll, mentions, tags} <- make_poll_data(data, mentions, tags),
          {to, cc} <- to_for_user_and_mentions(user, mentions, in_reply_to, visibility),
          context <- make_context(in_reply_to),
          cw <- data["spoiler_text"] || "",
@@ -171,7 +172,8 @@ defmodule Pleroma.Web.CommonAPI do
              tags,
              cw,
              cc,
-             sensitive
+             sensitive,
+             poll
            ),
          object <-
            Map.put(