From: William Pitcock Date: Thu, 1 Nov 2018 10:01:35 +0000 (+0000) Subject: twitter api: add support for rendering Page objects X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=24ba08de13ef8c0cb4330a613758d006453dfec3;p=akkoma twitter api: add support for rendering Page objects --- diff --git a/lib/pleroma/web/twitter_api/views/activity_view.ex b/lib/pleroma/web/twitter_api/views/activity_view.ex index fb97f199b..8e8b3f5ed 100644 --- a/lib/pleroma/web/twitter_api/views/activity_view.ex +++ b/lib/pleroma/web/twitter_api/views/activity_view.ex @@ -283,7 +283,7 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView 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 =