mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 08:16:16 +00:00
Fix text being nullable in TwitterAPI
This commit is contained in:
parent
fee360e581
commit
1b33986bfa
|
@ -266,6 +266,8 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
|
||||||
content
|
content
|
||||||
|> String.replace(~r/<br\s?\/?>/, "\n")
|
|> String.replace(~r/<br\s?\/?>/, "\n")
|
||||||
|> HTML.get_cached_stripped_html_for_object(activity, __MODULE__)
|
|> HTML.get_cached_stripped_html_for_object(activity, __MODULE__)
|
||||||
|
else
|
||||||
|
""
|
||||||
end
|
end
|
||||||
|
|
||||||
reply_parent = Activity.get_in_reply_to_activity(activity)
|
reply_parent = Activity.get_in_reply_to_activity(activity)
|
||||||
|
|
Loading…
Reference in a new issue