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

Fix public timelines being broken by new toots when they are not mounted #10131

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Mar 1, 2019

Regression from #6876

The condition was returning true even when the timeline has not been loaded once before. Once a toot was posted, it would then be inserted into the timeline, and when the timeline is then opened, that toot would be sitting there alone, making it so the actual timeline loading would fetch only toots older than that toot, creating unnatural gaps.

This was a bad look for new users especially.

@Gargron Gargron added the bug Something isn't working label Mar 1, 2019
@ClearlyClaire
Copy link
Contributor

It certainly reduces issues, but what about when streaming fails, the timeline is updated, and the null placeholder is thus removed? There will be a gap between the last fetched status and a newly-posted one.
Maybe we should insert it if and only if the streaming works, otherwise trigger an expandTimeline if the timeline is mounted, and otherwise do nothing.

@Gargron Gargron force-pushed the fix-web-ui-public-timeline-bug branch from a0dd411 to 1cc2c1e Compare March 7, 2019 20:40
@Gargron Gargron merged commit be1c634 into master Mar 7, 2019
@Gargron Gargron deleted the fix-web-ui-public-timeline-bug branch March 7, 2019 21:17
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
messenjahofchrist pushed a commit to Origin-Creative/mastodon that referenced this pull request Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants