aboutsummaryrefslogtreecommitdiff
path: root/test/web/twitter_api/twitter_api_controller_test.exs
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-05-13 08:16:54 +0000
committerlambda <pleromagit@rogerbraun.net>2018-05-13 08:16:54 +0000
commit2d83efa5deeef249494f06c6a0f20cfe5791a8e3 (patch)
tree67fd0dd926cb180be8dc0f0d1d3e9c6860232c5e /test/web/twitter_api/twitter_api_controller_test.exs
parent853f183fd3b8e782ef0f05e30a0b6b080d2a4ed0 (diff)
parent89603eda9ea51c5bd3c681fce958a4a6b446debe (diff)
downloadpleroma-2d83efa5deeef249494f06c6a0f20cfe5791a8e3.tar.gz
Merge branch 'no-self-notification' into 'develop'
Do not create notification for yourself Closes #121 See merge request pleroma/pleroma!148
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