mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update Profile model
This commit is contained in:
parent
aaf6477b7e
commit
0c300ceeee
1 changed files with 12 additions and 0 deletions
|
@ -279,4 +279,16 @@ class Profile extends Model
|
||||||
{
|
{
|
||||||
return $this->hasMany(Circle::class);
|
return $this->hasMany(Circle::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hashtags()
|
||||||
|
{
|
||||||
|
return $this->hasManyThrough(
|
||||||
|
Hashtag::class,
|
||||||
|
StatusHashtag::class,
|
||||||
|
'profile_id',
|
||||||
|
'id',
|
||||||
|
'id',
|
||||||
|
'hashtag_id'
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue