make linter happy
This commit is contained in:
parent
429407ba0a
commit
0fab887eee
|
@ -362,8 +362,7 @@ def following_requests_for_actor(%User{ap_id: ap_id}) do
|
|||
end
|
||||
|
||||
def restrict_deactivated_users(query) do
|
||||
deactivated_users_query =
|
||||
from(u in User.Query.build(%{deactivated: true}), select: u.ap_id)
|
||||
deactivated_users_query = from(u in User.Query.build(%{deactivated: true}), select: u.ap_id)
|
||||
|
||||
from(activity in query, where: activity.actor not in subquery(deactivated_users_query))
|
||||
end
|
||||
|
|
|
@ -790,7 +790,6 @@ test "doesn't return activities from deactivated users" do
|
|||
assert Enum.member?(activities, activity_two)
|
||||
end
|
||||
|
||||
|
||||
test "always see your own posts even when they address people you block" do
|
||||
user = insert(:user)
|
||||
blockee = insert(:user)
|
||||
|
|
Loading…
Reference in a new issue