From: rinpatch Date: Fri, 22 Mar 2019 21:10:50 +0000 (+0300) Subject: Fix text being nullable in TwitterAPI X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1b33986bfa3e924d49e0b37228979ed5f8f82d8c;p=akkoma Fix text being nullable in TwitterAPI --- diff --git a/lib/pleroma/web/twitter_api/views/activity_view.ex b/lib/pleroma/web/twitter_api/views/activity_view.ex index fe7d49975..aa1d41fa2 100644 --- a/lib/pleroma/web/twitter_api/views/activity_view.ex +++ b/lib/pleroma/web/twitter_api/views/activity_view.ex @@ -266,6 +266,8 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do content |> String.replace(~r//, "\n") |> HTML.get_cached_stripped_html_for_object(activity, __MODULE__) + else + "" end reply_parent = Activity.get_in_reply_to_activity(activity)