mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 20:19:27 +08:00
FEATURE: enable users to choose unseen as a default view (#14242)
This commit is contained in:
parent
34ff7bfeeb
commit
8f9e692e41
@ -26,6 +26,7 @@ const USER_HOMES = {
|
||||
4: "new",
|
||||
5: "top",
|
||||
6: "bookmarks",
|
||||
7: "unseen",
|
||||
};
|
||||
|
||||
const TEXT_SIZES = ["smallest", "smaller", "normal", "larger", "largest"];
|
||||
|
@ -168,6 +168,7 @@ class UserOption < ActiveRecord::Base
|
||||
when 4 then "new"
|
||||
when 5 then "top"
|
||||
when 6 then "bookmarks"
|
||||
when 7 then "unseen"
|
||||
else SiteSetting.homepage
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user