1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2025-01-04 13:15:10 +01:00

mastodon api: add support for rendering Page objects

This commit is contained in:
William Pitcock 2018-11-01 10:00:16 +00:00
parent 9f03b5c4f7
commit 4d8f076125

View File

@ -236,7 +236,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView 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 =