Browse Source

Merge branch 'hotfix/null-content' into 'develop'

Fix text being nullable in TwitterAPI

See merge request pleroma/pleroma!966
tags/v1.1.4
rinpatch 5 years ago
parent
commit
8b18955a59
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      lib/pleroma/web/twitter_api/views/activity_view.ex

+ 2
- 0
lib/pleroma/web/twitter_api/views/activity_view.ex 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)


Loading…
Cancel
Save