mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Add likes() method to Status controller
This commit is contained in:
parent
5d710d5574
commit
91dfc88a79
1 changed files with 5 additions and 0 deletions
|
@ -37,4 +37,9 @@ class Status extends Model
|
|||
return url($url);
|
||||
}
|
||||
|
||||
public function likes()
|
||||
{
|
||||
return $this->hasMany(Like::class);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue