소스 검색

Update AccountController, refresh relationship after handling follow request

Daniel Supernault 3 년 전
부모
커밋
fe7687851c
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Http/Controllers/AccountController.php

+ 1 - 0
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);
 	}