mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 15:35:33 +08:00

When `SiteSetting.embed_truncate` is enabled (by default), the truncated string is mutatable and does not raise an error. However, when the setting is disabled, the `contents` string is frozen and immutable, and will raise a `FrozenError`.