mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
bb127b8140
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. |
||
---|---|---|
.. | ||
adapters | ||
components | ||
controllers | ||
helpers | ||
initializers | ||
lib | ||
mixins | ||
models | ||
pre-initializers | ||
raw-views | ||
routes | ||
services | ||
templates | ||
widgets | ||
mapping-router.js.es6 |