Sfoglia il codice sorgente

Update profile views

Closes #84
Daniel Supernault 7 anni fa
parent
commit
ae6a59e782

+ 1 - 1
resources/views/profile/followers.blade.php

@@ -18,7 +18,7 @@
         <div class="profile-stats pb-3 d-inline-flex lead">
           <div class="font-weight-light pr-5">
             <a class="text-dark" href="{{$profile->url()}}">
-              <span class="font-weight-bold">{{$profile->statuses()->count()}}</span> 
+              <span class="font-weight-bold">{{$profile->statuses()->whereNull('in_reply_to_id')->count()}}</span> 
               Posts
             </a>
           </div>

+ 1 - 1
resources/views/profile/following.blade.php

@@ -18,7 +18,7 @@
         <div class="profile-stats pb-3 d-inline-flex lead">
           <div class="font-weight-light pr-5">
             <a class="text-dark" href="{{$profile->url()}}">
-              <span class="font-weight-bold">{{$profile->statuses()->count()}}</span> 
+              <span class="font-weight-bold">{{$profile->statuses()->whereNull('in_reply_to_id')->count()}}</span> 
               Posts
             </a>
           </div>

+ 1 - 1
resources/views/profile/show.blade.php

@@ -50,7 +50,7 @@
         </div>
         <div class="profile-stats pb-3 d-inline-flex lead">
           <div class="font-weight-light pr-5">
-            <span class="font-weight-bold">{{$user->statuses()->count()}}</span> 
+            <span class="font-weight-bold">{{$user->statuses()->whereNull('in_reply_to_id')->count()}}</span> 
             Posts
           </div>
           <div class="font-weight-light pr-5">