Add notifications for bites
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
195e46bcca
commit
1ee5d5584d
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue