3 ms·
Ask HN: Why are both the URL and text of HN submissions saved?
The help text says 'if there is a url, the text will be ignored'. However, when I browse the site using hn.premii.com (which uses the Algolia API IIRC), both the text and URL of a submission are visible. Visiting the original submission link shows only the URL and comments, but not the text submitted with the URL.
I understand and agree with the rationale for URL/text being either/or, but why save the text if it's not going to be displayed?
- unreal37 12y agoWhy does it matter?
- xyclos 12y agoisn't it displayed on the comments page?
- rahimnathwani 12y agoNo, it's not. For example, compare: http://hn.premii.com/#/comments/7861545/show-hn-tubelytics-realtime-dashboard-for-youtube-publishers- http://hn.premii.com/#/comments/7861545/show-hn-tubelytics-r... with: https://news.ycombinator.com/item?id=7861545 https://news.ycombinator.com/item?id=7861545 In the hn.premii.com link, the OP's text is shown below the URL. You can see s/he also added the same text as a comment, presumably because after realizing that the text was not displayed on news.ycombinator.com.
- minimaxir 12y agoUsing the Algolia API, the text is what appears if the submission is a self post; otherwise the field will be empty. (the URL of a self post is the URL to the self post).
- rahimnathwani 12y agoThe results of this API call include both the url (external) and the story text: http://hn.algolia.com/api/v1/items/7861545 http://hn.algolia.com/api/v1/items/7861545
- deleted 12y ago[deleted]