6.2.2: fixes related to twitter screwing everything up

(also fixes an issue with some instagram links)
This commit is contained in:
wukko
2023-06-30 16:29:21 +06:00
parent aaa99d48a3
commit db5d62ae58
10 changed files with 50 additions and 27 deletions

View File

@@ -62,7 +62,7 @@ export function msToTime(d) {
return r;
}
export function cleanURL(url, host) {
let forbiddenChars = ['}', '{', '(', ')', '\\', '%', '>', '<', '^', '*', '!', '~', ';', ':', ',', '`', '[', ']', '#', '$', '"', "'", "@"]
let forbiddenChars = ['}', '{', '(', ')', '\\', '%', '>', '<', '^', '*', '!', '~', ';', ':', ',', '`', '[', ']', '#', '$', '"', "'", "@", '==']
switch(host) {
case "vk":
url = url.includes('clip') ? url.split('&')[0] : url.split('?')[0];