1
0
Fork 0

Update relationships view, fix unfollow hashtag bug. Fixes #5008

This commit is contained in:
Daniel Supernault 2024-04-05 22:38:13 -06:00
parent e2c2952fda
commit 8c6936409d
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1
1 changed files with 9 additions and 15 deletions

View File

@ -6,18 +6,14 @@
<h3 class="font-weight-bold">Relationships</h3> <h3 class="font-weight-bold">Relationships</h3>
</div> </div>
<hr> <hr>
<ul class="nav nav-pills"> <div class="form-group pb-1">
<li class="nav-item"> <p>
<a class="nav-link font-weight-bold {{!request()->has('mode') || $mode == 'followers' ? 'active' : ''}}" href="?mode=followers&page=1">Followers</a> <a class="btn py-0 btn-link {{!request()->has('mode') || $mode == 'followers' ? 'font-weight-bold' : 'text-muted'}}" href="?mode=followers&page=1">Followers</a>
</li> <a class="btn btn-link py-0 {{$mode == 'following' ? 'font-weight-bold' : 'text-muted'}}" href="?mode=following&page=1">Following</a>
<li class="nav-item"> <a class="btn btn-link py-0 {{$mode == 'hashtags' ? 'font-weight-bold' : 'text-muted'}}" href="?mode=hashtags&page=1">Hashtags</a>
<a class="nav-link font-weight-bold {{$mode == 'following' ? 'active' : ''}}" href="?mode=following&page=1">Following</a> </p>
</li> </div>
<li class="nav-item">
<a class="nav-link font-weight-bold {{$mode == 'hashtags' ? 'active' : ''}}" href="?mode=hashtags&page=1">Hashtags</a>
</li>
</ul>
<hr>
@if(empty($data)) @if(empty($data))
<p class="text-center lead pt-5 mt-5">You are not {{$mode == 'hashtags' ? 'following any hashtags.' : ($mode == 'following' ? 'following anyone.' : 'followed by anyone.')}}</p> <p class="text-center lead pt-5 mt-5">You are not {{$mode == 'hashtags' ? 'following any hashtags.' : ($mode == 'following' ? 'following anyone.' : 'followed by anyone.')}}</p>
@else @else
@ -149,9 +145,7 @@
break; break;
case 'unfollowhashtag': case 'unfollowhashtag':
axios.post('/api/local/discover/tag/subscribe', { axios.post('/api/v1/tags/' + id + '/unfollow').then(res => {
name: id
}).then(res => {
swal( swal(
'Unfollow Successful', 'Unfollow Successful',
'You have successfully unfollowed that hashtag', 'You have successfully unfollowed that hashtag',