summaryrefslogtreecommitdiff
path: root/test/web/twitter_api/representers/activity_representer_test.exs
diff options
context:
space:
mode:
authordtluna <dtluna@openmailbox.org>2017-04-16 17:13:42 +0300
committerdtluna <dtluna@openmailbox.org>2017-04-16 17:13:42 +0300
commitf6547f7b7fa72a9730773012394c522ac6b17398 (patch)
treebe5af86ddc8c353cdc90e1bfac67bbc1f66f9b1c /test/web/twitter_api/representers/activity_representer_test.exs
parent9a8c348aed7772c9e2173163687e63943cf491fb (diff)
parente158e32124a62f2c93a8910bf3edc4519c4a13e6 (diff)
downloadpleroma-f6547f7b7fa72a9730773012394c522ac6b17398.tar.gz
pleroma-f6547f7b7fa72a9730773012394c522ac6b17398.zip
Merge branch 'develop' of ssh.gitgud.io:lambadalambda/pleroma into feature/unfollow-by-screen-name
Diffstat (limited to 'test/web/twitter_api/representers/activity_representer_test.exs')
-rw-r--r--test/web/twitter_api/representers/activity_representer_test.exs9
1 files changed, 6 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 a9129bccc..d0cccb149 100644
--- a/test/web/twitter_api/representers/activity_representer_test.exs
+++ b/test/web/twitter_api/representers/activity_representer_test.exs
@@ -45,8 +45,11 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
test "an activity" do
{:ok, user} = UserBuilder.insert
- {:ok, mentioned_user } = UserBuilder.insert(%{nickname: "shp", ap_id: "shp"})
- {:ok, follower} = UserBuilder.insert(%{following: [User.ap_followers(user)]})
+ # {:ok, mentioned_user } = UserBuilder.insert(%{nickname: "shp", ap_id: "shp"})
+ mentioned_user = insert(:user, %{nickname: "shp"})
+
+ # {:ok, follower} = UserBuilder.insert(%{following: [User.ap_followers(user)]})
+ follower = insert(:user, %{following: [User.ap_followers(user)]})
object = %Object{
data: %{
@@ -62,7 +65,7 @@ defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenterTest do
}
}
- content_html = "Some content mentioning <a href='shp'>@shp</shp>"
+ content_html = "Some content mentioning <a href='#{mentioned_user.ap_id}'>@shp</shp>"
content = HtmlSanitizeEx.strip_tags(content_html)
date = DateTime.from_naive!(~N[2016-05-24 13:26:08.003], "Etc/UTC") |> DateTime.to_iso8601