HackerNews-lsd2017 / hacker-news

Main repository hacker news
2 stars 1 forks source link

Title is missing on some stories #21

Closed Emmely2008 closed 6 years ago

Emmely2008 commented 6 years ago

I just opened hackernews and saw lot of stories with no title. Seems like the API returns "invalid" stories (title and url is an empty string) to the front end.

https://gyazo.com/cf3582774006aa77cfd4efdcce0f3818

https://gyazo.com/9d13e7c78c19418db16638076f11bb18

Emmely2008 commented 6 years ago

What is the status of this issue report? Couldn't you just make sure that the API doesn't respond with "invalid" stories?

Ldaxar commented 6 years ago

Hi @Emmely2008

Sorry for long response time. We were recently busy with non school life things.

This issue was due to mistake that I made that resulted in displaying comments as posts. Thats why they didn't have post title (because most of them were comments). I have resolved this issue.

Thank you for your input!