diff options
author | Alex Gleason <alex@alexgleason.me> | 2020-10-08 17:24:09 -0500 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2020-10-08 17:24:09 -0500 |
commit | 3f9263fb16ad519d2dd45106549a8ba42b68fc1f (patch) | |
tree | a48eb564f7f037a876a4d2131f8571aa33702b22 /lib/pleroma/web/common_api/utils.ex | |
parent | 24ce9c011caf7401fb261c7df4196b2ef9ba3d90 (diff) | |
parent | 74be4de3f6c2c34447029649526637411acfa9f3 (diff) | |
download | pleroma-3f9263fb16ad519d2dd45106549a8ba42b68fc1f.tar.gz |
Merge remote-tracking branch 'upstream/develop' into restrict-origin
Diffstat (limited to 'lib/pleroma/web/common_api/utils.ex')
-rw-r--r-- | lib/pleroma/web/common_api/utils.ex | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/pleroma/web/common_api/utils.ex b/lib/pleroma/web/common_api/utils.ex index 9c38b73eb..9d7b24eb2 100644 --- a/lib/pleroma/web/common_api/utils.ex +++ b/lib/pleroma/web/common_api/utils.ex @@ -548,17 +548,6 @@ defmodule Pleroma.Web.CommonAPI.Utils do end end - def make_answer_data(%User{ap_id: ap_id}, object, name) do - %{ - "type" => "Answer", - "actor" => ap_id, - "cc" => [object.data["actor"]], - "to" => [], - "name" => name, - "inReplyTo" => object.data["id"] - } - end - def validate_character_limit("" = _full_payload, [] = _attachments) do {:error, dgettext("errors", "Cannot post an empty status without attachments")} end |