Browse Source

Update Profile model

Daniel Supernault 6 năm trước cách đây
mục cha
commit
825fcd6fe4
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/Profile.php

+ 1 - 0
app/Profile.php

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