mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 23:09:29 -07:00
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
|
// Twitter
|
||||||
if (/^https:\/\/twitter.com/.test(url)) {
|
if (/^https:\/\/twitter.com/.test(url)) {
|
||||||
output.type = "twitter";
|
output.type = "twitter";
|
||||||
match = url.match(/https:\/\/twitter\.com\/(.*)\/status\/(.*)/);
|
match = url.match(/https:\/\/twitter\.com\/(.*)\/status\/([0-9]*)(?:\?.*)?/);
|
||||||
output.display = `@${match[1]}`;
|
output.display = `@${match[1]}`;
|
||||||
output.url = `https://twitter.com/${match[1]}`;
|
output.url = `https://twitter.com/${match[1]}`;
|
||||||
output.proofUrlFetch = `/server/verify/twitter
|
output.proofUrlFetch = `/server/verify/twitter
|
||||||
|
|
Loading…
Reference in a new issue