1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Update Profile model, add reported relationship

This commit is contained in:
Daniel Supernault 2020-02-11 21:41:16 -07:00
parent e33fb88f71
commit a34f38633c
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -308,4 +308,10 @@ class Profile extends Model
{
return $this->hasMany(Story::class);
}
public function reported()
{
return $this->hasMany(Report::class, 'object_id');
}
}