From d56a4108ec782399c7d16fc1d9c20ed6c1dac68f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 4 Jun 2024 02:08:42 -0600 Subject: [PATCH 1/2] Update ApiV1Controller, fix cache invalidation bug in update_credentials --- app/Http/Controllers/Api/ApiV1Controller.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index f7468941f..01c040e0f 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -457,7 +457,14 @@ class ApiV1Controller extends Controller Cache::forget('profile:following_count:'.$profile->id); Cache::forget('profile:embed:'.$profile->id); Cache::forget('profile:compose:settings:'.$user->id); - Cache::forget('profile:view:'.$user->username); + Cache::forget('profile:view:'.$profile->username); + Cache::forget('profile:atom:enabled:'.$profile->id); + Cache::forget('pfc:cached-user:wt:'.strtolower($profile->username)); + Cache::forget('pfc:cached-user:wot:'.strtolower($profile->username)); + Cache::forget('pf:acct:settings:hidden-followers:'.$profile->id); + Cache::forget('pf:acct:settings:hidden-following:'.$profile->id); + Cache::forget('pf:acct-trans:hideFollowing:'.$profile->id); + Cache::forget('pf:acct-trans:hideFollowers:'.$profile->id); AccountService::del($user->profile_id); } From e97b5b7a69c5e338844966ffea4ac03dcc1a0fa1 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 4 Jun 2024 02:09:00 -0600 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 343547dde..7f0029189 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,10 @@ - Update FederationController, add webfinger support for actor uri. Fixes #5068 ([24194f7d](https://github.com/pixelfed/pixelfed/commit/24194f7d)) - Update FetchNodeinfoPipeline, set last_fetched_at timestamp ([a7fce91e](https://github.com/pixelfed/pixelfed/commit/a7fce91e)) - Update task scheduler, add weekly instance scan to check nodeinfo for known instances ([dc6b9f46](https://github.com/pixelfed/pixelfed/commit/dc6b9f46)) -- ([](https://github.com/pixelfed/pixelfed/commit/)) +- Update AP fetch service and domain service ([42915ff9](https://github.com/pixelfed/pixelfed/commit/42915ff9)) +- Update ApiV1Controller, add settings to verify_credentials endpoint ([3f4e0b94](https://github.com/pixelfed/pixelfed/commit/3f4e0b94)) +- Update ApiV1Controller, fix update_credentials boolean handling ([19c62aaa](https://github.com/pixelfed/pixelfed/commit/19c62aaa)) +- Update ApiV1Controller, fix cache invalidation bug in update_credentials ([d56a4108](https://github.com/pixelfed/pixelfed/commit/d56a4108)) - ([](https://github.com/pixelfed/pixelfed/commit/)) - ([](https://github.com/pixelfed/pixelfed/commit/))