From fe7687851c36c364cd4c99ba0a608f2e1798d830 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 6 Mar 2022 03:45:19 -0700 Subject: [PATCH] Update AccountController, refresh relationship after handling follow request --- app/Http/Controllers/AccountController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 073bbfa81..fc3ff69d3 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -406,6 +406,7 @@ class AccountController extends Controller Cache::forget('profile:follower_count:'.$pid); Cache::forget('profile:following_count:'.$pid); + RelationshipService::refresh($pid, $follower->id); return response()->json(['msg' => 'success'], 200); }