Add new notification type for Move activities

This commit is contained in:
Thomas Sileo 2022-09-07 22:21:12 +02:00
parent 032632c4dc
commit 333fa5dc40
5 changed files with 29 additions and 1 deletions

View file

@ -414,3 +414,12 @@ def test_inbox__move_activity(
)
== 1
)
# And a notification was created
notif = db.execute(
select(models.Notification).where(
models.Notification.notification_type == models.NotificationType.MOVE
)
).scalar_one()
assert notif.actor.ap_id == new_ra.ap_id
assert notif.inbox_object_id == inbox_activity.id