Add notifications for bites

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-08-31 15:11:47 +02:00
parent 195e46bcca
commit 1ee5d5584d

View file

@ -178,11 +178,12 @@ def format_body(
user,
_object
)
when type in ["Follow", "Like"] do
when type in ["Follow", "Like", "Bite"] do
case notification.type do
"follow" -> "@#{user.nickname} has followed you"
"follow_request" -> "@#{user.nickname} has requested to follow you"
"favourite" -> "@#{user.nickname} has favorited your post"
"bite" -> "@#{user.nickname} has bit you"
end
end