Explorar el Código

Update follow intent, fix follower count leak

Daniel Supernault hace 4 años
padre
commit
03199e2f68
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      resources/views/site/intents/follow.blade.php

+ 2 - 2
resources/views/site/intents/follow.blade.php

@@ -14,7 +14,7 @@
 						<img class="rounded-circle p-1 border mt-n4 bg-white shadow" src="{{$profile->avatarUrl()}}" width="90px" height="90px;">
 					</div>
 					<p class="text-center lead font-weight-bold mb-1">{{$profile->username}}</p>
-					<p class="text-center text-muted small text-uppercase mb-4">{{$profile->followers->count()}} followers</p>
+					<p class="text-center text-muted small text-uppercase mb-4">{{$profile->followerCount()}} followers</p>
 					<div class="d-flex justify-content-center">
 					@if($following == true)
 						<form class="d-inline-block" action="/i/follow" method="post">
@@ -50,4 +50,4 @@
 		</div>
 	</div>
 </div>
-@endsection
+@endsection