reddit: remove the rest of references to title
This commit is contained in:
parent
7468b803fb
commit
3ca65e0daf
2 changed files with 2 additions and 4 deletions
|
@ -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":
|
||||
|
|
|
@ -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)),
|
||||
|
|
Loading…
Reference in a new issue