forked from Mirrors/keyoxide-web
Fix handling of Twitter URLs with parameters
This commit is contained in:
parent
8d612f545b
commit
0b2f04d131
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ async function verifyProof(url, fingerprint) {
|
|||
// Twitter
|
||||
if (/^https:\/\/twitter.com/.test(url)) {
|
||||
output.type = "twitter";
|
||||
match = url.match(/https:\/\/twitter\.com\/(.*)\/status\/(.*)/);
|
||||
match = url.match(/https:\/\/twitter\.com\/(.*)\/status\/([0-9]*)(?:\?.*)?/);
|
||||
output.display = `@${match[1]}`;
|
||||
output.url = `https://twitter.com/${match[1]}`;
|
||||
output.proofUrlFetch = `/server/verify/twitter
|
||||
|
|
Loading…
Reference in a new issue