Merge branch 'feature/push-subject-for-dm' into 'develop'

Direct messages should provide a distinct push notification subject

See merge request pleroma/pleroma!1864
This commit is contained in:
kaniini 2019-10-21 23:50:01 +00:00
commit 6281e4795a
2 changed files with 34 additions and 5 deletions

View file

@ -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"