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 | |
|---|---|---|
| .. | ||
| Auth | 4 weeks ago | |
| Console/Commands | 2 weeks ago | |
| Events | 4 weeks ago | |
| Http | 2 weeks ago | |
| Jobs | 2 weeks ago | |
| Listeners | 4 weeks ago | |
| 4 weeks ago | ||
| Models | 2 weeks ago | |
| Observers | 2 weeks ago | |
| Passport | 3 months ago | |
| Policies | 4 weeks ago | |
| Providers | 3 weeks ago | |
| Rules | 4 weeks ago | |
| Services | 2 weeks ago | |
| Transformer | 2 weeks ago | |
| Util | 2 weeks ago | |
| HasSnowflakePrimary.php | 9 months ago | |
| helpers.php | 9 months ago | |