From: lain Date: Sat, 24 Feb 2018 19:29:57 +0000 (+0100) Subject: Fix external url in twitterapi. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=7e0ce32f4d9693e475c03b1ea60ba63fe75ba7bb;p=akkoma Fix external url in twitterapi. --- diff --git a/lib/pleroma/web/twitter_api/representers/activity_representer.ex b/lib/pleroma/web/twitter_api/representers/activity_representer.ex index b0dfeaf39..8970b7c68 100644 --- a/lib/pleroma/web/twitter_api/representers/activity_representer.ex +++ b/lib/pleroma/web/twitter_api/representers/activity_representer.ex @@ -164,7 +164,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do "repeat_num" => announcement_count, "favorited" => to_boolean(favorited), "repeated" => to_boolean(repeated), - "external_url" => object["external_url"], + "external_url" => object["external_url"] || object["id"], "tags" => tags, "activity_type" => "post", "possibly_sensitive" => possibly_sensitive