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.
Make increaseStorageUsed/decrementStorageUsed recalculate from source when the cached counter is older than STALE_AFTER_HOURS (168h) or never calculated, so an affected user is corrected the next time they upload or delete without waiting for the nightly reconciler. Callers save/delete the media row before calling these, so the from-source recalc already reflects the change and the incremental delta is skipped on the recalc path. - Add UserStorageService::STALE_AFTER_HOURS and isStale() helper (no extra query: reads the already-loaded model), with defensive Carbon parsing - Cast users.storage_used_updated_at to datetime so freshness comparisons work on a Carbon instance - Add tests for stale/fresh/never-calculated increase and decrement paths |
2 weeks ago | |
|---|---|---|
| .. | ||
| Account | ||
| Admin | ||
| Api | ||
| Auth | ||
| AuthScope | ||
| Compose | ||
| Console | ||
| CriticalRoutes | ||
| Directory | ||
| Federation | ||
| Framework | ||
| LikePipeline | ||
| Media | ||
| MediaPipeline | 2 weeks ago | |
| Search | ||
| Security | 2 weeks ago | |
| Services | 2 weeks ago | |
| Settings | ||
| StatusPipeline | ||
| ActivityPubDeliveryServiceTest.php | ||
| AdminRemoveCwTest.php | ||
| CommentPrivatePostTest.php | ||
| ComposeControllerTest.php | ||
| CuratedRegisterEmailEscapeTest.php | ||
| DedupeQueryPatternsTest.php | ||
| DeleteWorkerAuthorizationTest.php | ||
| FollowerServiceFollowingIdsTest.php | ||
| HashtagFollowProfileGuardTest.php | ||
| HttpClientMigrationTest.php | ||
| ImportInstagramMissingProfileTest.php | ||
| LoginTest.php | ||
| ModelNamespaceMigrationTest.php | ||
| NotificationServiceTest.php | ||
| PollVotePrivateAuthTest.php | ||
| RemoteAuthServiceTest.php | ||
| RemoteOidcTest.php | ||
| SeasonalAggregationTest.php | ||
| SecureMediaFetchHeadersTest.php | ||
| StatusDeleteCleanupTest.php | ||
| StatusHashtagCachedCountTest.php | ||
| StoryExpireRemoteCacheTest.php | ||
| StoryFetchSsrfTest.php | ||
| ValidUsernameTest.php | ||