mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 15:55:14 +00:00
Update Story Model
This commit is contained in:
parent
c25ca8dc99
commit
ae78addab4
1 changed files with 14 additions and 1 deletions
|
@ -6,5 +6,18 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Story extends Model
|
||||
{
|
||||
//
|
||||
public function items()
|
||||
{
|
||||
return $this->hasMany(StoryItem::class);
|
||||
}
|
||||
|
||||
public function reactions()
|
||||
{
|
||||
return $this->hasMany(StoryReaction::class);
|
||||
}
|
||||
|
||||
public function views()
|
||||
{
|
||||
return $this->hasMany(StoryView::class);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue