purge chat and shout endpoints
[akkoma] / lib / pleroma / web / push / impl.ex
index 28e13ef9c791cbfe16e4737099572cfa898cd786..c30a39e94cf75d7537a816e8cb6a729795b29e29 100644 (file)
@@ -124,13 +124,6 @@ defmodule Pleroma.Web.Push.Impl do
 
   def format_body(activity, actor, object, mastodon_type \\ nil)
 
-  def format_body(_activity, actor, %{data: %{"type" => "ChatMessage"} = data}, _) do
-    case data["content"] do
-      nil -> "@#{actor.nickname}: (Attachment)"
-      content -> "@#{actor.nickname}: #{Utils.scrub_html_and_truncate(content, 80)}"
-    end
-  end
-
   def format_body(
         %{activity: %{data: %{"type" => "Create"}}},
         actor,
@@ -187,7 +180,6 @@ defmodule Pleroma.Web.Push.Impl do
       "follow_request" -> "New Follow Request"
       "reblog" -> "New Repeat"
       "favourite" -> "New Favorite"
-      "pleroma:chat_mention" -> "New Chat Message"
       "pleroma:emoji_reaction" -> "New Reaction"
       type -> "New #{String.capitalize(type || "event")}"
     end