Commit Graph
5 Commits
Author SHA1 Message Date
Natalie Tay bcc549f1dd FIX: Compatibility with new topic.tag return value (#132)
As part of https://github.com/discourse/discourse/pull/36678, topic.tags now returns an array of tag objects ({ id, name, slug }) instead of an array of tag name strings. 

The core change will break the auto_TOC_tags feature which was comparing the configured tag names against topic.tags using includes(), which no longer worked since it was comparing strings to objects.

This fix normalizes topic.tags to an array of tag names before comparison, maintaining backwards compatibility with both the old string format and the new object format.
2026-01-12 11:15:14 +08:00
Jarek Radosz d65428689b DEV: Update linting (#115) 2025-03-17 11:42:17 +00:00
Kelv 062d4c2d12 DEV: Update linting setup (#99) 2024-10-17 11:05:26 +02:00
锦心 830c0436c8 FEATURE: Allow TOC for replies (#90)
* FEATURE: Allow TOC for replies

This commit adds an optional setting that allows enabling a TOC for
replies. TOCs for replies are not affected by autoTOC settings like
`auto_TOC_tags` and must be inserted manually.
2024-08-07 15:40:11 +08:00
Kris 826b5fb22a REFACTOR: convert to ember component, add timeline toggle (#73) 2024-01-31 10:22:06 -05:00