Explorar o código

Update AccountController, refresh relationship after handling follow request

Daniel Supernault %!s(int64=3) %!d(string=hai) anos
pai
achega
fe7687851c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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);
 	}