浏览代码

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