I want to make one with a page action that is for submitting any url you may be on but this one is to help arbitrage links between HN and Stacker. You don't want to submit a duplicate so it needs to call the dup check for all the HN post urls. Right now its doing it in batches of 5. Heres my current graphql query
query UrlBatch($url0: String!, $url1: String!, $url2: String!, $url3: String!, $url4: String!) {
url0: dupes(url: $url0) { ...DupeInfo }
url1: dupes(url: $url1) { ...DupeInfo }
url2: dupes(url: $url2) { ...DupeInfo }
url3: dupes(url: $url3) { ...DupeInfo }
url4: dupes(url: $url4) { ...DupeInfo }
}
fragment DupeInfo on Item {
createdAt
commentSats
commentCredits
credits
id
ncomments
sub { name }
sats
title
updatedAt
upvotes
url
user { name id }
}
It shows a loading icon while its waiting for the batches of graphql queries to finish Then if it has results is shows you info about the territory it was submitted to and how many sats its gotten
I want to make one with a page action that is for submitting any url you may be on but this one is to help arbitrage links between HN and Stacker. You don't want to submit a duplicate so it needs to call the dup check for all the HN post urls. Right now its doing it in batches of 5. Heres my current graphql query
query UrlBatch($url0: String!, $url1: String!, $url2: String!, $url3: String!, $url4: String!) { url0: dupes(url: $url0) { ...DupeInfo } url1: dupes(url: $url1) { ...DupeInfo } url2: dupes(url: $url2) { ...DupeInfo } url3: dupes(url: $url3) { ...DupeInfo } url4: dupes(url: $url4) { ...DupeInfo } } fragment DupeInfo on Item { createdAt commentSats commentCredits credits id ncomments sub { name } sats title updatedAt upvotes url user { name id } }It shows a loading icon while its waiting for the batches of graphql queries to finish

Then if it has results is shows you info about the territory it was submitted to and how many sats its gotten