mirror of https://github.com/pixelfed/pixelfed
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Extract canonical source-of-truth count logic into AccountStatService: recalculateStatusCount/FollowerCount/FollowingCount and a reconcileProfileCounts() that fixes only drifted columns and busts caches. Both the scheduled app:account-post-count-stat-update (status-only, its correct scope) and fix:profilecounts now use these instead of duplicating the SQL. Also corrects the status_count definition to match the actual increment logic in StatusEntityLexer/StatusDelete (media post types only: photo/video albums), rather than the previous inconsistent all-statuses / scoped counts that could themselves cause drift. The scheduled updater keeps its incremental, dirty-set design and remains status-only; follower/following stay owned by FollowServiceWarmCache. |
4 weeks ago | |
|---|---|---|
| .. | ||
| AccountAppSettingsService.php | 9 months ago | |
| AccountStatService.php | 4 weeks ago | |
| RemoteAuthService.php | 9 months ago | |