Skip to content

Commit 4eaf982

Browse files
ChunkyProgrammerabsidue
andcommittedSep 9, 2024
Apply suggestions from code review
Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
1 parent 10a6994 commit 4eaf982

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed
 

‎src/renderer/components/ft-community-post/ft-community-post.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@
127127
/> {{ formattedVoteCount }}</span>
128128
<router-link
129129
v-if="isInvidiousAllowed && !singlePost"
130-
:to="`/post/${postId}`"
130+
:to="{
131+
path: `/post/${postId}`,
132+
query: authorId ? { authorId } : undefined
133+
}"
131134
class="commentsLink"
132135
:aria-label="$t('Channel.Community.View Full Post')"
133136
>

‎src/renderer/helpers/api/invidious.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,9 @@ export async function getInvidiousCommunityPostComments({ postId, authorId }) {
230230
resource: 'post',
231231
id: postId,
232232
subResource: 'comments',
233-
}
234-
235-
payload.params = {
236-
ucid: authorId
233+
params: {
234+
ucid: authorId
235+
}
237236
}
238237

239238
const response = await invidiousAPICall(payload)
@@ -248,12 +247,11 @@ export async function getInvidiousCommunityPostCommentReplies({ postId, replyTok
248247
id: postId,
249248
subResource: 'comments',
250249
params: {
250+
ucid: authorId,
251251
continuation: replyToken
252252
}
253253
}
254254

255-
payload.params.ucid = authorId
256-
257255
const response = await invidiousAPICall(payload)
258256
return { commentData: parseInvidiousCommentData(response), continuation: response.continuation ?? null }
259257
}

0 commit comments

Comments
 (0)