mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
PERF: no need to select the full theme just to get color scheme
This commit is contained in:
parent
b58c965aad
commit
3cfedc6c71
@ -390,8 +390,10 @@ module ApplicationHelper
|
|||||||
|
|
||||||
def scheme_id
|
def scheme_id
|
||||||
return if theme_ids.blank?
|
return if theme_ids.blank?
|
||||||
theme = Theme.find_by(id: theme_ids.first)
|
Theme
|
||||||
theme&.color_scheme_id
|
.where(id: theme_ids.first)
|
||||||
|
.pluck(:color_scheme_id)
|
||||||
|
.first
|
||||||
end
|
end
|
||||||
|
|
||||||
def current_homepage
|
def current_homepage
|
||||||
|
Loading…
Reference in New Issue
Block a user