mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update Profile model, add reported relationship
This commit is contained in:
parent
e33fb88f71
commit
a34f38633c
1 changed files with 6 additions and 0 deletions
|
@ -308,4 +308,10 @@ class Profile extends Model
|
||||||
{
|
{
|
||||||
return $this->hasMany(Story::class);
|
return $this->hasMany(Story::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function reported()
|
||||||
|
{
|
||||||
|
return $this->hasMany(Report::class, 'object_id');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue