mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2026-02-15 17:16:57 +00:00
Fix tests, relationship should always define _expires_at
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
parent
c1e33bfadb
commit
bc0c7fb310
2 changed files with 4 additions and 4 deletions
|
|
@ -143,6 +143,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
|
|||
reading_user,
|
||||
&User.blocks_user?(&1, &2)
|
||||
),
|
||||
block_expires_at: nil,
|
||||
muting: muting,
|
||||
muting_notifications:
|
||||
UserRelationship.exists?(
|
||||
|
|
@ -152,6 +153,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
|
|||
target,
|
||||
&User.muted_notifications?(&1, &2)
|
||||
),
|
||||
mute_expires_at: nil,
|
||||
subscribing: subscribing,
|
||||
notifying: subscribing,
|
||||
requested: requested,
|
||||
|
|
|
|||
|
|
@ -909,8 +909,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
|
|||
relationship: %{
|
||||
mute_expires_at: mute_expires_at
|
||||
}
|
||||
},
|
||||
mute_expires_at: mute_expires_at
|
||||
}
|
||||
} = AccountView.render("show.json", %{user: other_user, for: user, embed_relationships: true})
|
||||
|
||||
assert DateTime.diff(
|
||||
|
|
@ -931,8 +930,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
|
|||
relationship: %{
|
||||
block_expires_at: block_expires_at
|
||||
}
|
||||
},
|
||||
block_expires_at: block_expires_at
|
||||
}
|
||||
} = AccountView.render("show.json", %{user: other_user, for: user, embed_relationships: true})
|
||||
|
||||
assert DateTime.diff(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue