Skip to content

Commit e89ae2c

Browse files
Anthony KinseyAnthony Kinsey
Anthony Kinsey
authored and
Anthony Kinsey
committed
feat: implement link to profile view from posts
1 parent 1e3a848 commit e89ae2c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/views/Posts.vue

+2-4
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@
123123
<div v-if="!post._deleted && !post.user.ignored" class="post-block-grid">
124124
<!-- Post Profile Section -->
125125
<div class="post-user">
126-
<a href="#">
127-
<!-- <a ui-sref="profile.posts({ username: post.user.username})"> -->
126+
<router-link :to="{ path: '/profile/' + post.user.username.toLowerCase() }">
128127
<div class="user-avatar" :class="defaultAvatarShape">
129128
<span v-if="post.user.online" class="online green" :data-balloon="post.user.username + ' is online'">
130129
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48">
@@ -140,8 +139,7 @@
140139
<div class="original-poster" v-if="post.user.original_poster">OP</div>
141140
<div v-if="post.user.activity > -1" :title="('Activity: ' + post.user.activity)" class="user-activity">Act: <span class="user-activity-value">{{post.user.activity}}</span></div>
142141
</router-link>
143-
</a>
144-
142+
</router-link>
145143

146144
<div class="user-trust" v-if="loggedIn && postData.data.thread.trust_visible">
147145
<trust-display :user="post.user" />

0 commit comments

Comments
 (0)