From 730378616071fd35a70b722fdcd8b35070b0b330 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Sun, 7 May 2017 20:20:53 +0200 Subject: Add some twapi fixes. --- test/web/twitter_api/representers/activity_representer_test.exs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/web/twitter_api/representers') diff --git a/test/web/twitter_api/representers/activity_representer_test.exs b/test/web/twitter_api/representers/activity_representer_test.exs index 84c8d9a49..f4f3c9aba 100644 --- a/test/web/twitter_api/representers/activity_representer_test.exs +++ b/test/web/twitter_api/representers/activity_representer_test.exs @@ -77,6 +77,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do id: 1, data: %{ "type" => "Create", + "id" => "id", "to" => [ User.ap_followers(user), "https://www.w3.org/ns/activitystreams#Public", @@ -121,7 +122,8 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do "fave_num" => 5, "repeat_num" => 3, "favorited" => false, - "repeated" => false + "repeated" => false, + "external_url" => activity.data["id"] } assert ActivityRepresenter.to_map(activity, %{user: user, for: follower, mentioned: [mentioned_user]}) == expected_status -- cgit v1.2.3