Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: absidue <[email protected]>
  • Loading branch information
ChunkyProgrammer and absidue authored Sep 9, 2024
1 parent d16c8b0 commit 68cce0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@
/> {{ formattedVoteCount }}</span>
<router-link
v-if="isInvidiousAllowed && !singlePost"
:to="`/post/${postId}`"
:to="{
path: `/post/${postId}`,
query: authorId ? { authorId } : undefined
}"
class="commentsLink"
:aria-label="$t('Channel.Community.View Full Post')"
>
Expand Down
10 changes: 4 additions & 6 deletions src/renderer/helpers/api/invidious.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,9 @@ export async function getInvidiousCommunityPostComments({ postId, authorId }) {
resource: 'post',
id: postId,
subResource: 'comments',
}

payload.params = {
ucid: authorId
params: {
ucid: authorId
}
}

const response = await invidiousAPICall(payload)
Expand All @@ -248,12 +247,11 @@ export async function getInvidiousCommunityPostCommentReplies({ postId, replyTok
id: postId,
subResource: 'comments',
params: {
ucid: authorId,
continuation: replyToken
}
}

payload.params.ucid = authorId

const response = await invidiousAPICall(payload)
return { commentData: parseInvidiousCommentData(response), continuation: response.continuation ?? null }
}
Expand Down

0 comments on commit 68cce0a

Please sign in to comment.