[#2456] Removed support for embedded relationships in account view.
This commit is contained in:
parent
ac4250a18c
commit
aee88d11be
10 changed files with 23 additions and 155 deletions
|
|
@ -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})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue