mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-21 23:32:39 +00:00
Update DiscoverCategory model
This commit is contained in:
parent
41053f417e
commit
8cdf44009b
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,12 @@ class DiscoverCategory extends Model
|
|||
return $this->media->thumb();
|
||||
}
|
||||
|
||||
public function mediaUrl()
|
||||
{
|
||||
return $this->media->url();
|
||||
}
|
||||
|
||||
|
||||
public function items()
|
||||
{
|
||||
return $this->hasMany(DiscoverCategoryHashtag::class, 'discover_category_id');
|
||||
|
|
Loading…
Reference in a new issue