|
|
@@ -157,6 +157,7 @@ defmodule Pleroma.Web.CommonAPI do |
|
|
|
{to, cc} <- to_for_user_and_mentions(user, mentions, in_reply_to, visibility), |
|
|
|
context <- make_context(in_reply_to), |
|
|
|
cw <- data["spoiler_text"] || "", |
|
|
|
sensitive <- data["sensitive"] || Enum.member?(tags, {"#nsfw", "nsfw"}), |
|
|
|
full_payload <- String.trim(status <> cw), |
|
|
|
length when length in 1..limit <- String.length(full_payload), |
|
|
|
object <- |
|
|
@@ -169,7 +170,8 @@ defmodule Pleroma.Web.CommonAPI do |
|
|
|
in_reply_to, |
|
|
|
tags, |
|
|
|
cw, |
|
|
|
cc |
|
|
|
cc, |
|
|
|
sensitive |
|
|
|
), |
|
|
|
object <- |
|
|
|
Map.put( |
|
|
|