Commit 4d8f0761 authored by kaniini's avatar kaniini
Browse files

mastodon api: add support for rendering Page objects

parent 9f03b5c4
......@@ -236,7 +236,7 @@ def render_content(%{"type" => "Video"} = object) do
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"]
content =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment