Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pleroma pleroma
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 646
    • Issues 646
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 89
    • Merge requests 89
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PleromaPleroma
  • pleromapleroma
  • Issues
  • #502
Closed
Open
Issue created Jan 04, 2019 by Dominik V. Salonen@quadContributor

Mastodon API counts deleted accounts

How to reproduce

Create a user. The user_count found via /api/v1/instance will then increase by 1. (e.g, from 2 to 3)

Run mix pleroma.user rm username, the user_count does not drop back down after the user has been "deleted".

Expected behavior

The user_count returned by the mastodon API should drop by 1 when a user is "deleted".

Running rm on a user seems to only set info -> deactivated to true after deleting all of the user's content. As such, the mastodon API cannot tell the difference between an account that has simply been locked, and one that's supposed to no longer exist. I assume they remain in the database to prevent immediate reuse of the username, but it still leads to a skewed user count the way it's currently marked, or how the mastodon API reads the database entries.

Assignee
Assign to
Time tracking