mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-21 22:11:26 +00:00
Update FollowRequest model
This commit is contained in:
parent
35e0140e87
commit
0dc8d70639
1 changed files with 10 additions and 0 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue