discourse/lib/plugin
Natalie Tay 2a26555a7a
DEV: Allow specifying a condition when preloading topics for topic list (#32101)
Currently when using `register_topic_preloader_associations`, we are
not able to specify a condition that is evaluated at runtime.

This commit allows specifying a condition and also keeps backward
compatibility.

```
   register_topic_preloader_associations(:linked_topic) { true }
   register_topic_preloader_associations({
     first_post: [uploads]
   })
```
2025-04-01 16:50:16 +08:00
..
filter.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
filter_manager.rb DEV: Apply syntax_tree formatting to lib/* 2023-01-09 12:10:19 +00:00
instance.rb DEV: Allow specifying a condition when preloading topics for topic list (#32101) 2025-04-01 16:50:16 +08:00
metadata.rb DEV: Drop d-crowd plugin from official list (#31258) 2025-02-10 15:08:31 +00:00