diff --git a/app/FollowRequest.php b/app/FollowRequest.php index df7757eb..89bd26e9 100644 --- a/app/FollowRequest.php +++ b/app/FollowRequest.php @@ -17,4 +17,14 @@ class FollowRequest extends Model { return $this->belongsTo(Profile::class, 'following_id', 'id'); } + + public function actor() + { + return $this->belongsTo(Profile::class, 'follower_id', 'id'); + } + + public function target() + { + return $this->belongsTo(Profile::class, 'following_id', 'id'); + } }