Skip to content

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

Merged
Gargron merged 1 commit intomasterfrom
fix-web-ui-public-timeline-bug
Mar 7, 2019
Merged

Fix public timelines being broken by new toots when they are not mounted#10131
Gargron merged 1 commit intomasterfrom
fix-web-ui-public-timeline-bug

Conversation

@Gargron
Copy link
Copy Markdown
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
Copy Markdown
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