Skip to content

fix(social): exclude inactive accounts from follow rankings - #127

Closed
aiirvizionz wants to merge 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/aiornot-follow-leaderboard-pr
Closed

fix(social): exclude inactive accounts from follow rankings#127
aiirvizionz wants to merge 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/aiornot-follow-leaderboard-pr

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Fixes #125.

The profile counter already excludes suspended/deleted accounts, but both follow leaderboards only filter the ranked user. A suspended or deleted account can therefore inflate the public follower/following totals.

Changes:

  • join the other side of each follow edge and require both users to be active
  • add in-memory regression coverage for active, suspended, and deleted users

Tests:

  • pnpm --filter @aiornot/web exec vitest run lib/social.test.ts
  • 2 tests passed

@ralyodio ralyodio closed this Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Follow leaderboards count suspended and deleted relationships

2 participants