Skip to content

fix: recalculate notesCount of local user when notes are deleted.

Linca requested to merge linca/catofish:fix/local-user-notes-count into develop

What does this PR do? (Please give us a brief description of what this PR does.)

Trying to solve #10871 (closed).

The process of counting user's notes in the database should be O(log n), and theoretically there should be no user-perceivable performance loss.

Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this pull request
  • I have made sure to run pnpm run format before submitting this pull request

If this merge request makes changes to the Firefish API, please update docs/api-change.md

  • I updated the document / This merge request doesn't include API changes
Edited by Linca

Merge request reports