Restrict thread statuses that contain user's irreversible filters

This commit is contained in:
Sergey Suprunenko 2019-11-25 16:59:55 +01:00 committed by Alexander Strizhakov
commit 8277b29790
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
4 changed files with 35 additions and 4 deletions

View file

@ -1147,7 +1147,7 @@ defmodule Pleroma.NotificationTest do
insert(:filter, user: user, phrase: "test", hide: false)
another_user = insert(:user)
{:ok, _activity} = CommonAPI.post(another_user, %{"status" => "@#{user.nickname} test"})
{:ok, _} = CommonAPI.post(another_user, %{"status" => "@#{user.nickname} test"})
assert length(Notification.for_user(user)) == 1
end