twitter api: add "Video" to supported activity types list
authorWilliam Pitcock <nenolod@dereferenced.org>
Sun, 23 Dec 2018 13:58:45 +0000 (13:58 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sun, 23 Dec 2018 14:00:54 +0000 (14:00 +0000)
lib/pleroma/web/twitter_api/views/activity_view.ex

index 91d0867408d3c75fc4ca1755777a93e3a26c9e7d..c37d5486aa0b7838643ad68545dbf1bd70aef0aa 100644 (file)
@@ -301,7 +301,8 @@ defmodule Pleroma.Web.TwitterAPI.ActivityView do
     {summary, content}
   end
 
-  def render_content(%{"type" => object_type} = object) when object_type in ["Article", "Page"] do
+  def render_content(%{"type" => object_type} = object)
+      when object_type in ["Article", "Page", "Video"] do
     summary = object["name"] || object["summary"]
 
     content =