]> cat aescling's git repositories - mastodon.git/commit
Fix possible duplicate statuses in timelines in some edge cases (#17971)
authorClaire <claire.github-309c@sitedethib.com>
Wed, 6 Apr 2022 19:01:41 +0000 (21:01 +0200)
committerGitHub <noreply@github.com>
Wed, 6 Apr 2022 19:01:41 +0000 (21:01 +0200)
commitdd4c156f33a24b8bb89b45b2697aa4036c3ae5be
tree3726f6265dc512e748b8c4ebccd2580b6a1c3b59
parent8f91e304a5adb98b657a5c096359d0423a5d7e84
Fix possible duplicate statuses in timelines in some edge cases (#17971)

In some rare cases, when receiving statuses out of order from the streaming
API then polling from the REST API, it was possible for the
`expandNormalizedTimeline` function to insert duplicates in the timeline,
which would then result in several bugs.

This commits ensures that there are no duplicates inserted in the
timeline.
app/javascript/mastodon/reducers/timelines.js