discourse-translator/app/models/discourse_translator
Natalie Tay 572549bdc0
DEV: Prevent N+1 on topic show and add index on post_locales for post_id (#314)
For privileged users in restrict_translation_by_group, we show the 🌐 per post. Showing the 🌐 depends on the post's locale. This commit ensures locale is preloaded to prevent N+1 and adds an index on post_locale for the post_id.
2025-07-01 12:08:08 +08:00
..
post_locale.rb DEV: Prevent N+1 on topic show and add index on post_locales for post_id (#314) 2025-07-01 12:08:08 +08:00
post_translation.rb FIX: 'Show original' button only shows in topics where there are translated content (#240) 2025-03-06 11:36:44 +08:00
topic_locale.rb DEV: Move translation custom fields into their own tables (#201) 2025-02-10 12:29:07 +08:00
topic_translation.rb FIX: 'Show original' button only shows in topics where there are translated content (#240) 2025-03-06 11:36:44 +08:00