twitter api: add support for rendering Page objects

This commit is contained in:
William Pitcock 2018-11-01 10:01:35 +00:00
parent 4d8f076125
commit 24ba08de13
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ def render_content(%{"type" => "Note"} = object) do
{summary, content}
end
def render_content(%{"type" => "Article"} = object) do
def render_content(%{"type" => object_type} = object) when object_type in ["Article", "Page"] do
summary = object["name"] || object["summary"]
content =