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
|
|
@ -244,14 +244,14 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
|
|||
|
||||
html =
|
||||
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)
|
||||
|> Formatter.emojify(object["emoji"])
|
||||
|
||||
text =
|
||||
if content do
|
||||
content
|
||||
|> String.replace(~r/<br\s?\/?>/, "\n")
|
||||
|> Utils.get_stripped_html_for_object(activity)
|
||||
|> Object.get_cached_stripped_html(activity)
|
||||
end
|
||||
|
||||
reply_parent = Activity.get_in_reply_to_activity(activity)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue