Fix text being nullable in TwitterAPI

This commit is contained in:
rinpatch 2019-03-23 00:10:50 +03:00
parent fee360e581
commit 1b33986bfa

View File

@ -266,6 +266,8 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
content
|> String.replace(~r/<br\s?\/?>/, "\n")
|> HTML.get_cached_stripped_html_for_object(activity, __MODULE__)
else
""
end
reply_parent = Activity.get_in_reply_to_activity(activity)