Friendship ended with Postgresql now Cachex is my best friend
This commit is contained in:
parent
d9f40b05b3
commit
535fddd286
6 changed files with 49 additions and 86 deletions
|
|
@ -9,6 +9,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
|||
alias Pleroma.HTML
|
||||
alias Pleroma.Repo
|
||||
alias Pleroma.User
|
||||
alias Pleroma.Object
|
||||
alias Pleroma.Web.CommonAPI.Utils
|
||||
alias Pleroma.Web.MediaProxy
|
||||
alias Pleroma.Web.MastodonAPI.AccountView
|
||||
|
|
@ -120,7 +121,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
|||
content =
|
||||
object
|
||||
|> render_content()
|
||||
|> Utils.get_scrubbed_html_for_object(User.html_filter_policy(opts[:for]), activity)
|
||||
|> Object.get_cached_scrubbed_html(User.html_filter_policy(opts[:for]), activity)
|
||||
|
||||
%{
|
||||
id: to_string(activity.id),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue