diff options
author | lain <lain@soykaf.club> | 2020-08-07 10:44:06 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-08-07 10:44:06 +0000 |
commit | 34cbe9f44a0266cd5ec652c3e70021ef928a7f31 (patch) | |
tree | c9ad17f8fd0718fd50ae7e489cbd0eaf7e5efcb0 /lib/pleroma/web/common_api/utils.ex | |
parent | b9ebb55d2aabdf4c99b05efab9d4ad31b25f888d (diff) | |
parent | 9d7ce1a6d014499eb4d55190b81e55da849b5ad0 (diff) | |
download | pleroma-34cbe9f44a0266cd5ec652c3e70021ef928a7f31.tar.gz |
Merge branch 'features/poll-validation' into 'develop'
Poll and votes pipeline ingestion
Closes #1362 and #1852
See merge request pleroma/pleroma!2635
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 |