4 ms·
> What if the submission has tracking information in the URL, so there isn't an exact match? The program will look the path and it will not consider the query
by rajasimon 6y ago
> What if the submission has tracking information in the URL, so there isn't an exact match?
The program will look the path and it will not consider the query params for the identification.
i.e) https://www.solipsys.co.uk/new/BeingSlowToCriticise.html?te10hn https://www.solipsys.co.uk/new/BeingSlowToCriticise.html?te1...
Here new/BeingSlowToCriticise.html this will never change right. So it uses the path to identifies the submission.
> What if there's more than one submission?
Isn't that submitting the link more than once against the policy? Right now if that's the case then it will use the old one but I will write the program to take the last submitted one.
- ColinWright 6y agoCW> What if the submission has tracking information in the URL, so there isn't an exact match? RS> The program will look the path and it will not consider the query params for the identification. Sometimes the "query params" are actually specifying the page to be fetched, so sometimes they are an essential part of the URL. To the best of my knowledge, this is an unsolved problem, and I was wondering how you dealt with it. RS> i.e) ... I think you mean "e.g." ... "i.e." means "that is" and is used as a re-write, re-wording, or re-statement of what's already there. In contrast, "e.g." means "for example". You were giving an example, so I think you should use "e.g.". RS> ... Here new/BeingSlowToCriticise.html this will never change right. So it uses the path to identify the submission. That's true in this case, but not true in every case. For example: http://www.topicsinmaths.co.uk/cgi-bin/sews.py?SuggestedReading http://www.topicsinmaths.co.uk/cgi-bin/sews.py?SuggestedRead... Here the part after the "?" is specifying the page you want, and so it's an essential part of the "pointer to content". CW> What if there's more than one submission? RS> Isn't that submitting the link more than once against the policy? From the FAQ[0]: ===================== FAQ> Are reposts ok? FAQ> When a story has had significant attention in the last year or so, we bury reposts as duplicates. If not, a small number of reposts is ok. ===================== RS> Right now if that's the case then it will use the old one but I will write the program to take the last submitted one. This is also an unsolved problem. If there is a successful re-submission one can assume that the previous submission got little to no traffic, so taking the most recent might be better. Finally, if this becomes at all popular you might want some sort of verification. A method that's been used in the past is to have someone put a user-specific token in their HN profile. But that's some way off yet, getting traction is the hardest problem of all. Hope this helps. [0] https://news.ycombinator.com/newsfaq.html https://news.ycombinator.com/newsfaq.html
- rajasimon 6y ago> if this becomes at all popular you might want some sort of verification. Thanks, I also want this to take off. I was planning to create a system that takes some sort of token on HN user profile for authentication purpose. But that's too complicated and I don't want my user to update anything on the HN profile about section. I also experimented with add submission id on the hndisq div element like this. i.e) <div id="hndisq" data-submission_id="23281767"></div> but this is not easy for frequent blogger. May be I will add this feature later so that in some page you can add hndisq comment. > Here the part after the "?" is specifying the page you want, and so it's an essential part of the "pointer to content". Mm I never thought this. Thanks for the information. I will revisit this area later.