projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
5c6c302
)
Merge branch 'develop' into feature/push-subject-for-dm
author
Mark Felder
<feld@FreeBSD.org>
Fri, 18 Oct 2019 22:56:15 +0000
(17:56 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Fri, 18 Oct 2019 22:56:15 +0000
(17:56 -0500)
lib/pleroma/web/push/impl.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/push/impl.ex
b/lib/pleroma/web/push/impl.ex
index 35d3ff07cbb4946b411eac8f040efb454931dd76..dd445e8bfe2d0877ebbe850b304b5ef6952f2979 100644
(file)
--- 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"