Update AccountController, refresh relationship after handling follow request

This commit is contained in:
Daniel Supernault 2022-03-06 03:45:19 -07:00
parent 539752067f
commit fe7687851c
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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);
}