mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FEATURE: Allow the user to select a custom home page (#5268)
* Add user_home configuration option * Use the new user_home preference to actually show the right home page * Fix trailing whitespace * Update user_option_serializer.rb * Fix JavaScript default homepage tests * Use an object instead of a giant switch * Remove trailing whitespace * Make the default `user_home` set to `null` instead of `0` * Rename user_home to homepage_id
This commit is contained in:
parent
162932114e
commit
38b8d68c68
14 changed files with 90 additions and 4 deletions
|
@ -22,6 +22,7 @@ class UserOptionSerializer < ApplicationSerializer
|
|||
:theme_key,
|
||||
:theme_key_seq,
|
||||
:allow_private_messages,
|
||||
:homepage_id,
|
||||
|
||||
def auto_track_topics_after_msecs
|
||||
object.auto_track_topics_after_msecs || SiteSetting.default_other_auto_track_topics_after_msecs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue