]> cat aescling's git repositories - mastodon.git/commit
Don't attach IntersectionObserver for wrapped statuses (#3863)
authorunarist <m.unarist@gmail.com>
Tue, 20 Jun 2017 02:12:51 +0000 (11:12 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 20 Jun 2017 02:12:51 +0000 (04:12 +0200)
commit94ad0706f514e25c58c0a8f3201f96c1d1ccbbd8
tree36feefd1153b039a3ac2909f5a9746780e4cfd2e
parentbf8c2c43483650bc046a3b3dd114f1cdfa49d2b4
Don't attach IntersectionObserver for wrapped statuses (#3863)

This fixes a bug that sometimes boosted statuses being hidden on scrolling.

Previously, we've attached IntersectionObserver twice for boosted statuses:
wrapper Status and wrapped Status. This will call intersection handler twice,
so this may results race condition...probably.
app/javascript/mastodon/components/status.js