do not create notification for yourself

This commit is contained in:
Pierrick Brun 2018-05-07 20:51:14 +02:00
commit 89603eda9e
3 changed files with 12 additions and 2 deletions

View file

@ -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