services: add facebook support (#403)
* feat: add facebook support * chore: fix fail check * chore: minor fix * chore: add service in README.md * chore: cleaning post-merge code * facebook: add shared link pattern * chore: clean up removing unnecessarily code * fix: facebook shared link pattern * matchActionDecider: redirect to facebook video instead of rendering * facebook: pass sourceUrl in object * url: fix botched lint * fix: facebook shared link pattern with clean up * test: change facebook test response to redirect --------- Co-authored-by: dumbmoron <log@riseup.net>
This commit is contained in:
@@ -118,6 +118,19 @@
|
||||
"alias": "loom videos",
|
||||
"patterns": ["share/:id"],
|
||||
"enabled": true
|
||||
},
|
||||
"facebook": {
|
||||
"alias": "facebook videos",
|
||||
"altDomains": ["fb.watch"],
|
||||
"subdomains": ["web"],
|
||||
"patterns": [
|
||||
"_shortLink/:shortLink",
|
||||
":username/videos/:caption/:id",
|
||||
":username/videos/:id",
|
||||
"reel/:id",
|
||||
"share/:shortLink/:id"
|
||||
],
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user