aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2019-10-18 17:51:34 -0500
committerMark Felder <feld@FreeBSD.org>2019-10-18 17:51:34 -0500
commit152caef51d69ba4a47ac59346c782dfff8488f8b (patch)
tree48864cf0667f3a573809f2acdb5577aa77ab209c
parent3b1bc079af8fb6e467a9114de0d32e2de59a7fab (diff)
downloadpleroma-152caef51d69ba4a47ac59346c782dfff8488f8b.tar.gz
Direct messages should provide a distinct push notification subject
-rw-r--r--lib/pleroma/web/push/impl.ex4
1 files changed, 4 insertions, 0 deletions
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"