From: William Pitcock Date: Sun, 23 Dec 2018 13:53:25 +0000 (+0000) Subject: twitter api: activity representer: remove peertube hack X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=79b51a97fe9479948d429f095c5b07bc78ab5edf;p=akkoma twitter api: activity representer: remove peertube hack --- diff --git a/lib/pleroma/web/twitter_api/representers/activity_representer.ex b/lib/pleroma/web/twitter_api/representers/activity_representer.ex index 2808192b0..d9dd352be 100644 --- a/lib/pleroma/web/twitter_api/representers/activity_representer.ex +++ b/lib/pleroma/web/twitter_api/representers/activity_representer.ex @@ -171,14 +171,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do HTML.filter_tags(content, User.html_filter_policy(opts[:for])) |> Formatter.emojify(object["emoji"]) - video = - if object["type"] == "Video" do - [object] - else - [] - end - - attachments = (object["attachment"] || []) ++ video + attachments = object["attachment"] || [] reply_parent = Activity.get_in_reply_to_activity(activity)