Coabot don't send fbclid info
This commit is contained in:
parent
9d93fa5b99
commit
9cec729dd9
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ bot.global.text(/(https?:\/\/[^ ,\)"\n]*)/ig, async (b) => {
|
|||
if (match && match[1]) {
|
||||
var extra = "";
|
||||
var link = res.request.uri.href;
|
||||
link = link.replace(/[\?&]fbclid=.+/gi, "");
|
||||
if (/youtube.com/.test(link)) {
|
||||
if (t = /[?&]v=([^&]+)/.exec(link)) {
|
||||
link = "https://www.youtube.com/watch?v=" + t[1];
|
||||
|
|
Loading…
Reference in a new issue