Update follow intent, fix follower count leak

This commit is contained in:
Daniel Supernault 2021-08-01 15:09:52 -06:00
parent c5281dcdb3
commit 03199e2f68
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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