Skip to content

Commit 9afdf4a

Browse files
committed
feat: port over viewed thread feature
1 parent 3cfa395 commit 9afdf4a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/views/Posts.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ export default {
454454
threadsApi.slugToThreadId(to.params.threadSlug).then(t => t.id)
455455
.then(threadId => {
456456
params.thread_id = threadId
457+
threadsApi.viewed(threadId)
457458
return postsApi.byThread(params)
458459
.then(data => next(vm => {
459460
vm.postData.data = data
@@ -473,6 +474,7 @@ export default {
473474
threadsApi.slugToThreadId(to.params.threadSlug).then(t => t.id)
474475
.then(threadId => {
475476
params.thread_id = threadId
477+
threadsApi.viewed(threadId)
476478
return postsApi.byThread(params).then(data => {
477479
this.postData.data = data
478480
BanStore.updateBanNotice(this.postData.data.banned_from_board)

0 commit comments

Comments
 (0)