mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 09:21:40 +08:00

We were counting all the oneboxes in the DOM instead of just the ones in the preview. Also refactored the logic to count up to 'max_oneboxes_per_post` instead of down to 0. That also ensured we don't load 11 oneboxes when the setting is limiting to 10.