Skip to content

Commit 8c69364

Browse files
committed
Update relationships view, fix unfollow hashtag bug. Fixes #5008
1 parent e2c2952 commit 8c69364

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

resources/views/settings/relationships/home.blade.php

+9-15
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,14 @@
66
<h3 class="font-weight-bold">Relationships</h3>
77
</div>
88
<hr>
9-
<ul class="nav nav-pills">
10-
<li class="nav-item">
11-
<a class="nav-link font-weight-bold {{!request()->has('mode') || $mode == 'followers' ? 'active' : ''}}" href="?mode=followers&page=1">Followers</a>
12-
</li>
13-
<li class="nav-item">
14-
<a class="nav-link font-weight-bold {{$mode == 'following' ? 'active' : ''}}" href="?mode=following&page=1">Following</a>
15-
</li>
16-
<li class="nav-item">
17-
<a class="nav-link font-weight-bold {{$mode == 'hashtags' ? 'active' : ''}}" href="?mode=hashtags&page=1">Hashtags</a>
18-
</li>
19-
</ul>
20-
<hr>
9+
<div class="form-group pb-1">
10+
<p>
11+
<a class="btn py-0 btn-link {{!request()->has('mode') || $mode == 'followers' ? 'font-weight-bold' : 'text-muted'}}" href="?mode=followers&page=1">Followers</a>
12+
<a class="btn btn-link py-0 {{$mode == 'following' ? 'font-weight-bold' : 'text-muted'}}" href="?mode=following&page=1">Following</a>
13+
<a class="btn btn-link py-0 {{$mode == 'hashtags' ? 'font-weight-bold' : 'text-muted'}}" href="?mode=hashtags&page=1">Hashtags</a>
14+
</p>
15+
</div>
16+
2117
@if(empty($data))
2218
<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>
2319
@else
@@ -149,9 +145,7 @@
149145
break;
150146
151147
case 'unfollowhashtag':
152-
axios.post('/api/local/discover/tag/subscribe', {
153-
name: id
154-
}).then(res => {
148+
axios.post('/api/v1/tags/' + id + '/unfollow').then(res => {
155149
swal(
156150
'Unfollow Successful',
157151
'You have successfully unfollowed that hashtag',

0 commit comments

Comments
 (0)