Allow subscribing for pleroma:emoji_reaction push notifications

This commit is contained in:
Mark Felder 2020-11-17 18:33:40 +00:00
parent 3ce11b830e
commit 83ec2f1384

View File

@ -25,7 +25,7 @@ defmodule Pleroma.Web.Push.Subscription do
timestamps() timestamps()
end end
@supported_alert_types ~w[follow favourite mention reblog pleroma:chat_mention]a @supported_alert_types ~w[follow favourite mention reblog pleroma:chat_mention pleroma:emoji_reaction]a
defp alerts(%{data: %{alerts: alerts}}) do defp alerts(%{data: %{alerts: alerts}}) do
alerts = Map.take(alerts, @supported_alert_types) alerts = Map.take(alerts, @supported_alert_types)