From: William Pitcock Date: Sun, 23 Dec 2018 13:58:45 +0000 (+0000) Subject: twitter api: add "Video" to supported activity types list X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=34a4ed22c4904270b1c5c2acab09e995d9a8d6dd;p=akkoma twitter api: add "Video" to supported activity types list --- diff --git a/lib/pleroma/web/twitter_api/views/activity_view.ex b/lib/pleroma/web/twitter_api/views/activity_view.ex index 91d086740..c37d5486a 100644 --- a/lib/pleroma/web/twitter_api/views/activity_view.ex +++ b/lib/pleroma/web/twitter_api/views/activity_view.ex @@ -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 =