mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +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();
|
return $this->media->thumb();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function mediaUrl()
|
||||||
|
{
|
||||||
|
return $this->media->url();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public function items()
|
public function items()
|
||||||
{
|
{
|
||||||
return $this->hasMany(DiscoverCategoryHashtag::class, 'discover_category_id');
|
return $this->hasMany(DiscoverCategoryHashtag::class, 'discover_category_id');
|
||||||
|
|
Loading…
Reference in a new issue