aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-05-07 20:20:53 +0200
committerRoger Braun <roger@rogerbraun.net>2017-05-07 20:20:53 +0200
commit730378616071fd35a70b722fdcd8b35070b0b330 (patch)
tree1c1e2fd03a270f80eda66e0f9327209332a010aa /test
parente49770ee88c335f5f2f9889aee0f8e8d48a73686 (diff)
downloadpleroma-730378616071fd35a70b722fdcd8b35070b0b330.tar.gz
Add some twapi fixes.
Diffstat (limited to 'test')
-rw-r--r--test/web/twitter_api/representers/activity_representer_test.exs4
1 files changed, 3 insertions, 1 deletions
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