TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Service to redirect to HN thread

5 pointsby marinintimabout 9 years ago

3 comments

marinintimabout 9 years ago
Reason to build: I&#x27;ve seen few blogs that link to HN as primary forum and think it&#x27;s great, but AFAIU that forces you to update post after publishing to add HN link. With this you can just link to discuss-on-hn.xyz&#x2F;go and it will update itself.<p>Inside it uses HN Algolia API [0] to search and redirect to first item and in-memory hashmap; I&#x27;ll add rate limiting tomorrow, right now I need some sleep. Also this is my first Common Lisp project ever, that turns out to be quite fun.<p>[0] <a href="https:&#x2F;&#x2F;hn.algolia.com&#x2F;api" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;api</a>
gus_massaabout 9 years ago
What does it do when Algolia doesn&#x27;t find the post?<p>An &quot;advanced&quot; feature request: Some sites are rewritten, for example <a href="https:&#x2F;&#x2F;example.blogspot.com.ar" rel="nofollow">https:&#x2F;&#x2F;example.blogspot.com.ar</a> is transformed to by HN to <a href="https:&#x2F;&#x2F;example.blogspot.com" rel="nofollow">https:&#x2F;&#x2F;example.blogspot.com</a> and BlogSpot will transform it to whatever country you are, so it would be nice to add in version 2 some canonizations to make it more compatible with HN. Also, medium is a nightmare, because it adds a random mark to the url and the HN post may have a different random mark. And the nytimes adds something like &amp;r_1=0 or something. (Probably medium is the more important use case.)<p>Another idea: Can you transform this into a bookmarklet?
评论 #11652153 未加载
评论 #11653786 未加载
anonfunctionabout 9 years ago
I think this could be against the HN rules as read in the FAQ[1], if anyone who came to the link were to upvote the post. HN penalizes these posts by not allowing them to be promoted outside of newest.<p>&gt; Can I ask people to upvote my submission?<p>&gt; No. Users should vote for a story because it&#x27;s intellectually interesting, not because someone is promoting it.<p>&gt; When the software detects a voting ring, it penalizes the post. Accounts that vote like this eventually get their votes ignored.<p>1. <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;newsfaq.html" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;newsfaq.html</a>