mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update FollowerController
This commit is contained in:
parent
c3aa407b9a
commit
d1d8fa4acd
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,7 @@ use App\{
|
|||
Profile,
|
||||
UserFilter
|
||||
};
|
||||
use Auth;
|
||||
use Auth, Cache;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Jobs\FollowPipeline\FollowPipeline;
|
||||
|
||||
|
@ -67,5 +67,8 @@ class FollowerController extends Controller
|
|||
$follower = Follower::whereProfileId($user->id)->whereFollowingId($target->id)->firstOrFail();
|
||||
$follower->delete();
|
||||
}
|
||||
|
||||
Cache::forget('profile:followers:'.$target->id);
|
||||
Cache::forget('profile:following:'.$user->id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue