diff --git a/app/Profile.php b/app/Profile.php index 0eb8255f2..86c83bf5e 100644 --- a/app/Profile.php +++ b/app/Profile.php @@ -279,4 +279,16 @@ class Profile extends Model { return $this->hasMany(Circle::class); } + + public function hashtags() + { + return $this->hasManyThrough( + Hashtag::class, + StatusHashtag::class, + 'profile_id', + 'id', + 'id', + 'hashtag_id' + ); + } }