reddit: remove the rest of references to title

This commit is contained in:
wukko 2023-11-23 21:35:02 +06:00
parent 7468b803fb
commit 3ca65e0daf
2 changed files with 2 additions and 4 deletions

View file

@ -67,8 +67,7 @@ export default async function(host, patternMatch, url, lang, obj) {
case "reddit":
r = await reddit({
sub: patternMatch["sub"],
id: patternMatch["id"],
title: patternMatch["title"]
id: patternMatch["id"]
});
break;
case "douyin":

View file

@ -8,8 +8,7 @@ export const testers = {
"youtube": (patternMatch) => (patternMatch["id"] && patternMatch["id"].length <= 11),
"reddit": (patternMatch) => (patternMatch["sub"] && patternMatch["id"] && patternMatch["title"]
&& patternMatch["sub"].length <= 22 && patternMatch["id"].length <= 10 && patternMatch["title"].length <= 96),
"reddit": (patternMatch) => (patternMatch.sub?.length <= 22 && patternMatch.id?.length <= 10),
"tiktok": (patternMatch) => ((patternMatch["user"] && patternMatch["postId"] && patternMatch["postId"].length <= 21)
|| (patternMatch["id"] && patternMatch["id"].length <= 13)),