[#2456] Removed support for embedded relationships in account view.

This commit is contained in:
Ivan Tashkinov 2020-05-10 09:16:48 +03:00
commit aee88d11be
10 changed files with 23 additions and 155 deletions

View file

@ -22,12 +22,7 @@ defmodule Pleroma.Web.ChatChannel do
if String.length(text) in 1..Pleroma.Config.get([:instance, :chat_limit]) do
author = User.get_cached_by_nickname(user_name)
author =
Pleroma.Web.MastodonAPI.AccountView.render("show.json",
user: author,
skip_relationships: true
)
author = Pleroma.Web.MastodonAPI.AccountView.render("show.json", user: author)
message = ChatChannelState.add_message(%{text: text, author: author})