mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
Expand hn to hackernews
This commit is contained in:
parent
fe84a18f7e
commit
1e61abd248
1 changed files with 1 additions and 1 deletions
|
@ -481,7 +481,7 @@ async function verifyProof(url, fingerprint) {
|
|||
}
|
||||
// HN
|
||||
if (/^https:\/\/news.ycombinator.com/.test(url)) {
|
||||
output.type = "hn";
|
||||
output.type = "hackernews";
|
||||
match = url.match(/https:\/\/news.ycombinator.com\/user\?id=(.*)/);
|
||||
output.display = match[1];
|
||||
output.proofUrlFetch = `https://hacker-news.firebaseio.com/v0/user/${match[1]}.json`;
|
||||
|
|
Loading…
Reference in a new issue