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

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

diff --git a/app/assets/javascripts/discourse/app/controllers/preferences/interface.js b/app/assets/javascripts/discourse/app/controllers/preferences/interface.js
index 22f67fe..e16e5b6 100644
--- a/app/assets/javascripts/discourse/app/controllers/preferences/interface.js
+++ b/app/assets/javascripts/discourse/app/controllers/preferences/interface.js
@@ -26,6 +26,7 @@ const USER_HOMES = {
   4: "new",
   5: "top",
   6: "bookmarks",
+  7: "unseen",
 };
 
 const TEXT_SIZES = ["smallest", "smaller", "normal", "larger", "largest"];
diff --git a/app/models/user_option.rb b/app/models/user_option.rb
index 0c73533..0adcf21 100644
--- a/app/models/user_option.rb
+++ b/app/models/user_option.rb
@@ -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

GitHub sha: 8f9e692e41e17719ddf725d26ed6eb67955e3fc9

This commit appears in #14242 which was approved by eviltrout. It was merged by AndrewPrigorshnev.