Skip to content

Commit a318ac4

Browse files
committed
refactor(thread-username): Remove checks for thread username before displaying data; this resolves the bug where anonymous threads were not apprearing in the threads list
1 parent ce4bfef commit a318ac4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/views/Threads.vue

+3-4
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
</tr>
163163

164164
<tr class="threads-data" v-for="thread in threadData.data.normal" :key="thread.id">
165-
<td class="subject" v-if="thread.user.username">
165+
<td class="subject">
166166
<div class="title">
167167
<div class="thread-state">
168168
<svg class="is-unread" v-if="thread.has_new_post" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" data-balloon="Unread">
@@ -203,13 +203,12 @@
203203
</div>
204204
</td>
205205

206-
<td class="views-replies" v-if="thread.user.username">
206+
<td class="views-replies">
207207
<span class="replies">{{ thread.is_proxy ? thread.post_count.toLocaleString() : (thread.post_count - 1).toLocaleString() || 0 }}</span>
208208
<span class="views">{{ thread.view_count.toLocaleString() || 0 }}</span>
209-
210209
</td>
211210

212-
<td class="last-post" v-if="thread.user.username">
211+
<td class="last-post">
213212
<span v-if="thread.last_deleted">deleted</span>
214213
<router-link v-if="!thread.last_deleted && thread.last_post_username" :to="{ path: '/profile/' + thread.last_post_username.toLowerCase(), query: { id: thread.last_post_user_id } }">
215214
<img class="avatar-small" :class="defaultAvatar" :src="thread.last_post_avatar || defaultAvatar" @error="$event.target.src=defaultAvatar" />

0 commit comments

Comments
 (0)