purge chat and shout endpoints
[akkoma] / lib / pleroma / web / activity_pub / builder.ex
index 006e92bf40f7c556a65c3f87177c5bffe099a1a4..8c51b8d6330e0fd5ea678bf5bbba4041096c0656 100644 (file)
@@ -183,30 +183,6 @@ defmodule Pleroma.Web.ActivityPub.Builder do
     end
   end
 
-  def chat_message(actor, recipient, content, opts \\ []) do
-    basic = %{
-      "id" => Utils.generate_object_id(),
-      "actor" => actor.ap_id,
-      "type" => "ChatMessage",
-      "to" => [recipient],
-      "content" => content,
-      "published" => DateTime.utc_now() |> DateTime.to_iso8601(),
-      "emoji" => Emoji.Formatter.get_emoji_map(content)
-    }
-
-    case opts[:attachment] do
-      %Object{data: attachment_data} ->
-        {
-          :ok,
-          Map.put(basic, "attachment", attachment_data),
-          []
-        }
-
-      _ ->
-        {:ok, basic, []}
-    end
-  end
-
   def answer(user, object, name) do
     {:ok,
      %{