Skip to content

Commit

Permalink
encodeURI for hashtag url
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunkyProgrammer committed Sep 6, 2023
1 parent 7d3152f commit 4ebe05c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/components/ft-list-hashtag/ft-list-hashtag.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default defineComponent({
this.parsedChannelCount = formatNumber(this.channelCount)
this.videoCount = this.data.videoCount
this.parsedVideosCount = formatNumber(this.videoCount)
this.url = this.data.url ?? `hashtag/${encodeURIComponent(this.data.title.substring(1))}`
this.url = `/hashtag/${encodeURIComponent(this.data.title.substring(1))}`
}
}
})
3 changes: 1 addition & 2 deletions src/renderer/helpers/api/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,7 @@ function parseListItem(item) {
type: 'hashtag',
title: hashtag.hashtag.text,
videoCount: hashtag.hashtag_video_count.isEmpty() ? null : parseLocalSubscriberCount(hashtag.hashtag_video_count.text),
channelCount: hashtag.hashtag_channel_count.isEmpty() ? null : parseLocalSubscriberCount(hashtag.hashtag_channel_count.text),
url: hashtag.endpoint.metadata.url
channelCount: hashtag.hashtag_channel_count.isEmpty() ? null : parseLocalSubscriberCount(hashtag.hashtag_channel_count.text)
}
}
case 'Playlist': {
Expand Down

0 comments on commit 4ebe05c

Please sign in to comment.