diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-06-18 04:05:42 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-07-15 11:40:23 +0200 |
commit | 82895a40123ca24258a95b9ac7e117dd8b1e698e (patch) | |
tree | 94fa7d39209f6db9dc5ffe31ec35eec38755eb93 /lib/pleroma/web/common_api/utils.ex | |
parent | 4f70fd4105e90c8fc06a1eb6bd70084874bae3a5 (diff) | |
download | pleroma-82895a40123ca24258a95b9ac7e117dd8b1e698e.tar.gz |
SideEffects: port ones from ActivityPub.do_create and ActivityPub.insert
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 |