diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-06-25 12:07:08 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-06-25 12:07:08 +0200 |
commit | 1c074efeaf720bba7a2ee81fd7ee1f01cfd084e4 (patch) | |
tree | ef88a15500de9da87fe77452b1cdd385cd9a5524 /test/web/twitter_api/representers | |
parent | 429992fcc921a15f853d08b975682499d83dea99 (diff) | |
download | pleroma-1c074efeaf720bba7a2ee81fd7ee1f01cfd084e4.tar.gz |
Add external links to twapi.
Diffstat (limited to 'test/web/twitter_api/representers')
-rw-r--r-- | test/web/twitter_api/representers/activity_representer_test.exs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/web/twitter_api/representers/activity_representer_test.exs b/test/web/twitter_api/representers/activity_representer_test.exs index 781ef8536..777ad0bf5 100644 --- a/test/web/twitter_api/representers/activity_representer_test.exs +++ b/test/web/twitter_api/representers/activity_representer_test.exs @@ -93,6 +93,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do "attachment" => [ object ], + "external_url" => "some url", "like_count" => 5, "announcement_count" => 3, "context" => "2hu", @@ -100,14 +101,15 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do }, "published" => date, "context" => "2hu" - } + }, + local: false } expected_status = %{ "id" => activity.id, "user" => UserView.render("show.json", %{user: user, for: follower}), - "is_local" => true, + "is_local" => false, "statusnet_html" => HtmlSanitizeEx.basic_html(content_html), "text" => content, "is_post_verb" => true, @@ -124,7 +126,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do "repeat_num" => 3, "favorited" => false, "repeated" => false, - "external_url" => activity.data["id"], + "external_url" => "some url", "tags" => ["content", "mentioning", "nsfw"] } |