Friendship ended with Postgresql now Cachex is my best friend

This commit is contained in:
Rin Toshaka 2018-12-30 19:33:36 +01:00
commit 535fddd286
6 changed files with 49 additions and 86 deletions

View file

@ -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),