1
0
Fork 1
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:
Daniel Supernault 2019-02-08 12:27:51 -07:00
parent 41053f417e
commit 8cdf44009b
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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');