[Pleroma.Web.MastodonAPI.AccountView]: relationship.json: fake endorsed value (false)

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-09-20 16:22:31 +02:00
parent 43d0b7bf7a
commit a8eaecadee
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
2 changed files with 4 additions and 2 deletions

View file

@ -79,7 +79,8 @@ def render("relationship.json", %{user: user, target: target}) do
muting_notifications: false,
requested: false,
domain_blocking: false,
showing_reblogs: false
showing_reblogs: false,
endorsed: false
}
end

View file

@ -126,7 +126,8 @@ test "represent a relationship" do
muting_notifications: false,
requested: false,
domain_blocking: false,
showing_reblogs: false
showing_reblogs: false,
endorsed: false
}
assert expected == AccountView.render("relationship.json", %{user: user, target: other_user})