mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 02:25:37 +08:00
FIX: Associate category logo and background to uploads record.
This commit is contained in:
@ -28,6 +28,7 @@ class Site
|
||||
def categories
|
||||
@categories ||= begin
|
||||
categories = Category
|
||||
.includes(:uploaded_logo, :uploaded_background)
|
||||
.secured(@guardian)
|
||||
.joins('LEFT JOIN topics t on t.id = categories.topic_id')
|
||||
.select('categories.*, t.slug topic_slug')
|
||||
|
Reference in New Issue
Block a user