api/reddit: add support for mobile links & bunch of other links (#1098)
* api/reddit: extract params from a mobile share link * api/reddit: add support for a bunch of links & update the api endpoint also fixed "undefined" in a filename when downloading a user post * api/service-patterns: fix reddit id pattern
This commit is contained in:
@@ -65,8 +65,21 @@ export const services = {
|
||||
},
|
||||
reddit: {
|
||||
patterns: [
|
||||
"comments/:id",
|
||||
|
||||
"r/:sub/comments/:id",
|
||||
"r/:sub/comments/:id/:title",
|
||||
"user/:user/comments/:id/:title"
|
||||
"r/:sub/comments/:id/comment/:commentId",
|
||||
|
||||
"user/:user/comments/:id",
|
||||
"user/:user/comments/:id/:title",
|
||||
"user/:user/comments/:id/comment/:commentId",
|
||||
|
||||
"r/u_:user/comments/:id",
|
||||
"r/u_:user/comments/:id/:title",
|
||||
"r/u_:user/comments/:id/comment/:commentId",
|
||||
|
||||
"r/:sub/s/:shareId"
|
||||
],
|
||||
subdomains: "*",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user