mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-25 17:26:43 +00:00
Update FollowerController
This commit is contained in:
parent
0b1c03e5bf
commit
2f007f6826
1 changed files with 4 additions and 0 deletions
|
@ -57,6 +57,9 @@ class FollowerController extends Controller
|
|||
'follower_id' => $user->id,
|
||||
'following_id' => $target->id
|
||||
]);
|
||||
if($remote == true) {
|
||||
|
||||
}
|
||||
} elseif ($isFollowing == 0) {
|
||||
$follower = new Follower();
|
||||
$follower->profile_id = $user->id;
|
||||
|
@ -72,5 +75,6 @@ class FollowerController extends Controller
|
|||
Cache::forget('profile:followers:'.$target->id);
|
||||
Cache::forget('profile:following:'.$user->id);
|
||||
Cache::forget('profile:followers:'.$user->id);
|
||||
Cache::forget('api:local:exp:rec:'.$user->id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue