twitter api: refactor activity html generation, add support for Articles
This commit is contained in:
parent
3b799f22b7
commit
152a526237
1 changed files with 0 additions and 2 deletions
|
@ -262,7 +262,6 @@ 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"]}"
|
||||
|
@ -275,7 +274,6 @@ 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"]}"
|
||||
|
|
Loading…
Reference in a new issue