Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polls not showing when coming from Algolia (search/submissions) #158

Open
jonas-w opened this issue Mar 3, 2024 · 1 comment
Open

Polls not showing when coming from Algolia (search/submissions) #158

jonas-w opened this issue Mar 3, 2024 · 1 comment

Comments

@jonas-w
Copy link
Contributor

jonas-w commented Mar 3, 2024

Maybe I misremembered it, but I thought that polls were once implemented in Harmonic.

For example:

https://news.ycombinator.com/item?id=39572682

Shows as:

Screenshot_20240303-144159

And in the user view it looks even weirder with "null" posts:
Screenshot_20240303-144244

Screenshot_20240303-144302

@SimonHalvdansson
Copy link
Owner

I think the problem here is that we're getting to the story (poll) from an interface which uses the Algolia interface. Algolia does not support polls so the way they're usually getting into the application is if we load a story using the normal API, e.g. from the home screen, the info from that API response is sent onwards to CommentsFragment which uses it to show the polls.

The way to solve this is to load/reload the HN API response when going into a story which is fetched from the Algolia API.

@SimonHalvdansson SimonHalvdansson changed the title Polls Polls not showing when coming from Algolia (search/submissions) Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants