mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Add hot as a homepage option (#25325)
This commit is contained in:
@@ -44,6 +44,10 @@ export default Controller.extend({
|
||||
this._super(...arguments);
|
||||
|
||||
this.set("selectedDarkColorSchemeId", this.session.userDarkSchemeId);
|
||||
|
||||
if (this.siteSettings.experimental_hot_topics) {
|
||||
USER_HOMES[8] = "hot";
|
||||
}
|
||||
},
|
||||
|
||||
@discourseComputed("makeThemeDefault")
|
||||
|
||||
@@ -185,6 +185,12 @@ class UserOption < ActiveRecord::Base
|
||||
"bookmarks"
|
||||
when 7
|
||||
"unseen"
|
||||
when 8
|
||||
if SiteSetting.experimental_hot_topics
|
||||
"hot"
|
||||
else
|
||||
SiteSetting.homepage
|
||||
end
|
||||
else
|
||||
SiteSetting.homepage
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user