diff options
author | William Pitcock <nenolod@dereferenced.org> | 2018-07-12 16:12:54 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-07-12 16:12:54 +0000 |
commit | b832df1e158aa945a3c481804da0a839f18d46c5 (patch) | |
tree | 9b8e79a6705ff4134af47fba32eaecd632ef1218 /lib | |
parent | 4fb64c1d862692bb869dd735e9772195b7cf2705 (diff) | |
download | pleroma-b832df1e158aa945a3c481804da0a839f18d46c5.tar.gz |
formatting
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/twitter_api/views/activity_view.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/twitter_api/views/activity_view.ex b/lib/pleroma/web/twitter_api/views/activity_view.ex index cb7c4cb96..55b5287f5 100644 --- a/lib/pleroma/web/twitter_api/views/activity_view.ex +++ b/lib/pleroma/web/twitter_api/views/activity_view.ex @@ -262,6 +262,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do def render_content(%{"type" => "Note"} = object) do summary = object["summary"] + content = if !!summary and summary != "" do "<p>#{summary}</p>#{object["content"]}" @@ -274,6 +275,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do def render_content(%{"type" => "Article"} = object) do summary = object["name"] || object["summary"] + content = if !!summary and summary != "" do "<p><a href=\"#{object["url"]}\">#{summary}</a></p>#{object["content"]}" |