1
0
Fork 0
forked from mirror/pixelfed

Update Profile model

This commit is contained in:
Daniel Supernault 2018-12-10 20:45:44 -07:00
parent 21ec1704df
commit 825fcd6fe4
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -156,6 +156,7 @@ class Profile extends Model
public function statusCount() public function statusCount()
{ {
return $this->statuses() return $this->statuses()
->getQuery()
->whereHas('media') ->whereHas('media')
->whereNull('in_reply_to_id') ->whereNull('in_reply_to_id')
->whereNull('reblog_of_id') ->whereNull('reblog_of_id')