1
0
Fork 0
forked from mirror/pixelfed

Update FollowRequest model

This commit is contained in:
Daniel Supernault 2018-12-31 23:25:00 -07:00
parent 35e0140e87
commit 0dc8d70639
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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');
}
}