Restrict statuses that contain user's irreversible filters

This commit is contained in:
Sergey Suprunenko 2019-11-16 22:54:13 +01:00 committed by Alexander Strizhakov
commit 4a8c26654e
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
6 changed files with 141 additions and 4 deletions

View file

@ -428,4 +428,12 @@ defmodule Pleroma.Factory do
user: build(:user)
}
end
def filter_factory do
%Pleroma.Filter{
user: build(:user),
filter_id: sequence(:filter_id, & &1),
phrase: "cofe"
}
end
end