FEATURE: enable users to choose unseen as a default view (#14242)

This commit is contained in:
Andrei Prigorshnev
2021-09-06 21:51:52 +04:00
committed by GitHub
parent 34ff7bfeeb
commit 8f9e692e41
2 changed files with 2 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ const USER_HOMES = {
4: "new",
5: "top",
6: "bookmarks",
7: "unseen",
};
const TEXT_SIZES = ["smallest", "smaller", "normal", "larger", "largest"];

View File

@@ -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