forked from AkkomaGang/akkoma
Merge branch 'develop' into improve-move-notificaions-api
This commit is contained in:
commit
d4953474ac
1 changed files with 4 additions and 1 deletions
|
@ -117,6 +117,9 @@ test "Move notification" do
|
||||||
Pleroma.Web.ActivityPub.ActivityPub.move(old_user, new_user)
|
Pleroma.Web.ActivityPub.ActivityPub.move(old_user, new_user)
|
||||||
Pleroma.Tests.ObanHelpers.perform_all()
|
Pleroma.Tests.ObanHelpers.perform_all()
|
||||||
|
|
||||||
|
old_user = refresh_record(old_user)
|
||||||
|
new_user = refresh_record(new_user)
|
||||||
|
|
||||||
[notification] = Notification.for_user(follower, %{with_move: true})
|
[notification] = Notification.for_user(follower, %{with_move: true})
|
||||||
|
|
||||||
expected = %{
|
expected = %{
|
||||||
|
@ -124,7 +127,7 @@ test "Move notification" do
|
||||||
pleroma: %{is_seen: false},
|
pleroma: %{is_seen: false},
|
||||||
type: "move",
|
type: "move",
|
||||||
account: AccountView.render("show.json", %{user: old_user, for: follower}),
|
account: AccountView.render("show.json", %{user: old_user, for: follower}),
|
||||||
target: AccountView.render("show.json", %{user: refresh_record(new_user), for: follower}),
|
target: AccountView.render("show.json", %{user: new_user, for: follower}),
|
||||||
created_at: Utils.to_masto_date(notification.inserted_at)
|
created_at: Utils.to_masto_date(notification.inserted_at)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue