diff --git a/app/Profile.php b/app/Profile.php index 70ba38ed7..e46bedeed 100644 --- a/app/Profile.php +++ b/app/Profile.php @@ -296,4 +296,11 @@ class Profile extends Model { return $this->hasMany(Collection::class); } + + public function hasFollowRequestById(int $id) + { + return FollowRequest::whereFollowerId($id) + ->whereFollowingId($this->id) + ->exists(); + } }