From: Mark Felder Date: Fri, 18 Oct 2019 22:51:34 +0000 (-0500) Subject: Direct messages should provide a distinct push notification subject X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=152caef51d69ba4a47ac59346c782dfff8488f8b;p=akkoma Direct messages should provide a distinct push notification subject --- diff --git a/lib/pleroma/web/push/impl.ex b/lib/pleroma/web/push/impl.ex index 35d3ff07c..dd445e8bf 100644 --- a/lib/pleroma/web/push/impl.ex +++ b/lib/pleroma/web/push/impl.ex @@ -125,6 +125,10 @@ defmodule Pleroma.Web.Push.Impl do end end + def format_title(%{activity: %{data: %{"directMessage" => true}}}) do + "New Direct Message" + end + def format_title(%{activity: %{data: %{"type" => type}}}) do case type do "Create" -> "New Mention"