fix(user): use deactivated: false for familiar followers

User.Query ignores is_active. The friends subquery already drops
deactivated users here, so this only removes the last ignored key.
Also add a changelog entry and a test.
This commit is contained in:
Lain Soykaf 2026-10-27 17:26:20 +04:00
commit 555d93bc33
No known key found for this signature in database
3 changed files with 14 additions and 1 deletions

View file

@ -1476,7 +1476,7 @@ defmodule Pleroma.User do
|> where([u], not u.hide_follows)
|> select([u], u.id)
User.Query.build(%{is_active: true})
User.Query.build(%{deactivated: false})
|> where([u], u.id not in ^[user.id, current_user.id])
|> join(:inner, [u], r in FollowingRelationship,
as: :followers_relationships,