X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fnotification.ex;h=d8878338ee5859b90f9a1ca843a4afc4871e4d69;hb=0f132b802dde7f217ecb07767e0d34e3edb517b7;hp=2ab09495d0609b0ae091d38174a1eeca3eefdcb2;hpb=07ea4d73e12c65cf3fd5c194a8eb1f27900ed17f;p=akkoma diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index 2ab09495d..d8878338e 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -68,7 +68,6 @@ defmodule Pleroma.Notification do follow_request mention move - pleroma:chat_mention pleroma:emoji_reaction pleroma:report reblog @@ -444,16 +443,7 @@ defmodule Pleroma.Notification do end end - defp type_from_activity_object(%{data: %{"type" => "Create", "object" => %{}}}), do: "mention" - - defp type_from_activity_object(%{data: %{"type" => "Create"}} = activity) do - object = Object.get_by_ap_id(activity.data["object"]) - - case object && object.data["type"] do - "ChatMessage" -> "pleroma:chat_mention" - _ -> "mention" - end - end + defp type_from_activity_object(%{data: %{"type" => "Create"}}), do: "mention" # TODO move to sql, too. def create_notification(%Activity{} = activity, %User{} = user, opts \\ []) do