fix and improve web push; add configuration docs

This commit is contained in:
Egor Kislitsyn 2018-12-07 15:55:28 +07:00 committed by href
commit 658edb166f
No known key found for this signature in database
GPG key ID: EE8296C1A152C325
4 changed files with 32 additions and 19 deletions

View file

@ -100,16 +100,16 @@ defmodule Pleroma.Web.Push do
def format(%{activity: %{data: %{"type" => "Announce"}}}, actor) do
%{
title: "New Announce",
body: "@#{actor.nickname} has announced your post",
title: "New Repeat",
body: "@#{actor.nickname} has repeated your post",
icon: User.avatar_url(actor)
}
end
def format(%{activity: %{data: %{"type" => "Like"}}}, actor) do
%{
title: "New Like",
body: "@#{actor.nickname} has liked your post",
title: "New Favorite",
body: "@#{actor.nickname} has favorited your post",
icon: User.avatar_url(actor)
}
end