aboutsummaryrefslogtreecommitdiff
path: root/test/web/twitter_api/twitter_api_controller_test.exs
diff options
context:
space:
mode:
authorPierrick Brun <brun.pierrick@protonmail.com>2018-05-07 20:51:14 +0200
committerPierrick Brun <brun.pierrick@protonmail.com>2018-05-11 11:31:17 +0200
commit89603eda9ea51c5bd3c681fce958a4a6b446debe (patch)
treef2dbc1b84500622ae9532a1aaf106bb59ac78939 /test/web/twitter_api/twitter_api_controller_test.exs
parentffe028cd7392404c85ab65eca167a16e85b3f788 (diff)
downloadpleroma-89603eda9ea51c5bd3c681fce958a4a6b446debe.tar.gz
do not create notification for yourself
Diffstat (limited to 'test/web/twitter_api/twitter_api_controller_test.exs')
-rw-r--r--test/web/twitter_api/twitter_api_controller_test.exs4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/web/twitter_api/twitter_api_controller_test.exs b/test/web/twitter_api/twitter_api_controller_test.exs
index d7113979a..896fe246d 100644
--- a/test/web/twitter_api/twitter_api_controller_test.exs
+++ b/test/web/twitter_api/twitter_api_controller_test.exs
@@ -257,8 +257,10 @@ defmodule Pleroma.Web.TwitterAPI.ControllerTest do
end
test "with credentials", %{conn: conn, user: current_user} do
+ other_user = insert(:user)
+
{:ok, activity} =
- ActivityBuilder.insert(%{"to" => [current_user.ap_id]}, %{user: current_user})
+ ActivityBuilder.insert(%{"to" => [current_user.ap_id]}, %{user: other_user})
conn =
conn