Add new notification type for Move activities
This commit is contained in:
parent
032632c4dc
commit
333fa5dc40
5 changed files with 29 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue