Actually notify of bites

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-08-31 20:52:44 +02:00
parent d47447afae
commit a7ef06e947
2 changed files with 26 additions and 25 deletions

View file

@ -473,6 +473,7 @@ def handle(
} = object,
meta
) do
meta =
with %User{} = biting <- User.get_cached_by_ap_id(biting_user),
%User{} = bitten <- User.get_cached_by_ap_id(bitten_user),
{:previous_bite, previous_bite} <-

View file

@ -17,7 +17,7 @@ defmodule Pleroma.Web.Push.Impl do
import Ecto.Query
@body_chars 140
@types ["Create", "Follow", "Announce", "Like", "Move", "EmojiReact", "Update"]
@types ["Create", "Follow", "Announce", "Like", "Move", "EmojiReact", "Update", "Bite"]
@doc "Builds webpush notification payloads for the subscriptions enabled by the receiving user"
@spec build(Notification.t()) ::