forked from MarseyWorld/MarseyWorld
Stop skipping render of Follow/Unfollow button in user listing because profile is private (#94)
As per title "Stop skipping render of Follow/Unfollow button in user listing because profile is private" Happens when browsing through the user listing (at least): * /search/users * /users Seems strange to hide that button in the user listing and not the profile page itself. When profiles are private, there can be some interest in following/unfollowing even without clicking the profile. Tried to search git history but no additional sense was obtained Co-authored-by: Your Name <madmarcolas@gmail.com> Reviewed-on: rDrama/rDrama#94 Co-authored-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net> Co-committed-by: mummified-corroding-granny <mummified-corroding-granny@noreply.fsdfsd.net>master
parent
123cee6372
commit
cf1229d59a
|
@ -16,7 +16,7 @@
|
|||
<a class="card-title text-break stretched-link mb-0" href="{{u.url}}"><h5>@{{u.username}}</h5></a>
|
||||
|
||||
{% if v %}
|
||||
{% if v.id != u.id and not u.is_private %}
|
||||
{% if v.id != u.id %}
|
||||
<div id="button-sub-{{u.id}}" style="z-index: 2" class="{% if u.has_follower(v) %}d-none{% endif %}"><button type="button" class="btn btn-primary" data-nonce="{{g.nonce}}" data-onclick="postToastSwitch(this,'/follow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}','d-none')">Follow</button></div>
|
||||
|
||||
<div id="button-unsub-{{u.id}}" style="z-index: 2" class="{% if not u.has_follower(v) %} d-none{% endif %}"><button type="button" class="btn btn-secondary" data-nonce="{{g.nonce}}" data-onclick="postToastSwitch(this,'/unfollow/{{u.username}}','button-sub-{{u.id}}','button-unsub-{{u.id}}','d-none')">Unfollow</button></div>
|
||||
|
|
Loading…
Reference in New Issue