diff options
| author | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-11-10 16:30:21 +0300 |
|---|---|---|
| committer | Ivan Tashkinov <ivantashkinov@gmail.com> | 2019-11-10 16:30:21 +0300 |
| commit | 3db988250bcd279f20bd1742ca454aa187d89368 (patch) | |
| tree | 6ea77632f57f8e35de46c5416374dd86d6bca784 /test/conversation | |
| parent | 3a1aaadc18372fb8c76fa72cd20ed65dd85b2326 (diff) | |
| download | pleroma-3db988250bcd279f20bd1742ca454aa187d89368.tar.gz pleroma-3db988250bcd279f20bd1742ca454aa187d89368.zip | |
[#1335] User: refactored :blocks field into :blocked_users relation.
Introduced UserBlock.
Diffstat (limited to 'test/conversation')
| -rw-r--r-- | test/conversation/participation_test.exs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/conversation/participation_test.exs b/test/conversation/participation_test.exs index 863270022..a36f45a5a 100644 --- a/test/conversation/participation_test.exs +++ b/test/conversation/participation_test.exs @@ -252,7 +252,7 @@ defmodule Pleroma.Conversation.ParticipationTest do assert User.get_cached_by_id(blocker.id).unread_conversation_count == 4 - {:ok, blocker} = User.block(blocker, blocked) + {:ok, _user_block} = User.block(blocker, blocked) # The conversations with the blocked user are marked as read assert [%{read: true}, %{read: true}, %{read: true}, %{read: false}] = @@ -274,7 +274,7 @@ defmodule Pleroma.Conversation.ParticipationTest do blocked = insert(:user) third_user = insert(:user) - {:ok, blocker} = User.block(blocker, blocked) + {:ok, _user_block} = User.block(blocker, blocked) # When the blocked user is the author {:ok, _direct1} = @@ -311,7 +311,7 @@ defmodule Pleroma.Conversation.ParticipationTest do "visibility" => "direct" }) - {:ok, blocker} = User.block(blocker, blocked) + {:ok, _user_block} = User.block(blocker, blocked) assert [%{read: true}] = Participation.for_user(blocker) assert User.get_cached_by_id(blocker.id).unread_conversation_count == 0 |
