From: William Pitcock Date: Thu, 1 Nov 2018 10:00:16 +0000 (+0000) Subject: mastodon api: add support for rendering Page objects X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4d8f0761258e0ea7cfca2f4f93b47e55bb657c66;p=akkoma mastodon api: add support for rendering Page objects --- diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 1efd99470..27fe23594 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -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 =