twitter api: add support for rendering Page objects
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 1 Nov 2018 10:01:35 +0000 (10:01 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 1 Nov 2018 10:01:35 +0000 (10:01 +0000)
lib/pleroma/web/twitter_api/views/activity_view.ex

index fb97f199bcde8a9a444754350fe9bb26df719825..8e8b3f5ed8417280c64af8c3b627605d45107948 100644 (file)
@@ -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 =