link to final href after redirections

This commit is contained in:
mose 2019-09-15 09:21:11 +08:00
parent 101b69666d
commit bf1a69500f

View file

@ -24,7 +24,7 @@ bot.global.text(/(https?:\/\/[^ ,\)"]*)/ig, (b) => {
extra += " - [invidio](https://invidio.us/watch?v=" + t[1] + ")";
}
}
b.respond("[:link:](" + url + ") _" + match[1] + "_" + extra);
b.respond("[:link:](" + link + ") _" + match[1] + "_" + extra);
}
}
});