aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-02-24 20:29:57 +0100
committerlain <lain@soykaf.club>2018-02-24 20:29:57 +0100
commit7e0ce32f4d9693e475c03b1ea60ba63fe75ba7bb (patch)
tree7b35407277365d8837417a7bfe1120447fb80be4 /lib
parent82e34cae95a204475f4419758c980ddd922be095 (diff)
downloadpleroma-7e0ce32f4d9693e475c03b1ea60ba63fe75ba7bb.tar.gz
Fix external url in twitterapi.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/twitter_api/representers/activity_representer.ex2
1 files changed, 1 insertions, 1 deletions
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