[#2791] AccountView: renamed :force option to :skip_visibility_check.

This commit is contained in:
Ivan Tashkinov 2020-07-23 15:08:30 +03:00
commit 9ea51a6de5
12 changed files with 44 additions and 29 deletions

View file

@ -26,7 +26,8 @@ defmodule Pleroma.Web.PleromaAPI.ChatViewTest do
assert represented_chat == %{
id: "#{chat.id}",
account: AccountView.render("show.json", user: recipient, force: true),
account:
AccountView.render("show.json", user: recipient, skip_visibility_check: true),
unread: 0,
last_message: nil,
updated_at: Utils.to_masto_date(chat.updated_at)