Skip to content

Commit

Permalink
lowercase handle
Browse files Browse the repository at this point in the history
  • Loading branch information
NeloBlivion authored Jan 29, 2024
1 parent 6ecf948 commit 32ab321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/AddChannelRequest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export default {
const matches = [...this.link.matchAll(regex)];
let id = matches?.[0]?.[1];
handle = this.link.includes('@')
id = handle ? '@' + id : id;
id = handle ? '@' + id.toLowerCase() : id;
try {
const exists = id && (await backendApi.channel(id));
Expand Down Expand Up @@ -306,7 +306,7 @@ export default {
value:
this.link
|| handle
? `https://www.youtube.com/@${id}`
? `https://www.youtube.com/${id}`
: `https://www.youtube.com/channel/${this.channel.id}`,
inline: false,
},
Expand Down

0 comments on commit 32ab321

Please sign in to comment.