Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Changed how indexing works when hn[id] is called #1402

Merged
merged 1 commit into from
Apr 8, 2014
Merged

Changed how indexing works when hn[id] is called #1402

merged 1 commit into from
Apr 8, 2014

Conversation

andreicek
Copy link

The site has the indexing done so it starts from 1, and not 0. This makes quoting the actual Hacker News post a hassle because you have to always substract 1 to get the actual article link and title.

Eg.

And we before had to call the script using hn[0] to get the following response:

EU top court rules EU data retention law invalid: http://www.reuters.com/article/2014/04/08/us-eu-data-ruling-idUSBREA370F020140408 (https://news.ycombinator.com/item?id=7552087)

The site has the indexing done so it starts from 1, and not 0. This makes quoting the actual Hacker News post a hassle because you have to always substract 1 to get the actual article link and title.
technicalpickles added a commit that referenced this pull request Apr 8, 2014
Changed how indexing works when hn[id] is called
@technicalpickles technicalpickles merged commit d843f15 into github:master Apr 8, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants