mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:31:18 +08:00
FIX: use current user color scheme when filling theme-color
attribute (#6384)
* FIX: use current user color scheme when filling `meta` attribute `theme-color` * update manifest.webmanifest colors
This commit is contained in:
@ -362,6 +362,12 @@ module ApplicationHelper
|
||||
end
|
||||
end
|
||||
|
||||
def scheme_id
|
||||
return if theme_ids.blank?
|
||||
theme = Theme.find_by(id: theme_ids.first)
|
||||
theme&.color_scheme_id
|
||||
end
|
||||
|
||||
def current_homepage
|
||||
current_user&.user_option&.homepage || SiteSetting.anonymous_homepage
|
||||
end
|
||||
|
Reference in New Issue
Block a user