Fix tests

This commit is contained in:
Egor Kislitsyn 2019-05-24 21:41:11 +07:00
parent f333041a0a
commit a7affbdd6d

View file

@ -1193,6 +1193,7 @@ test "fetch_activities/2 returns activities addressed to a list " do
CommonAPI.post(user, %{"status" => "foobar", "visibility" => "list:#{list.id}"}) CommonAPI.post(user, %{"status" => "foobar", "visibility" => "list:#{list.id}"})
activity = Repo.preload(activity, :bookmark) activity = Repo.preload(activity, :bookmark)
activity = %Activity{activity | thread_muted?: !!activity.thread_muted?}
assert ActivityPub.fetch_activities([], %{"user" => user}) == [activity] assert ActivityPub.fetch_activities([], %{"user" => user}) == [activity]
end end