Add latest_only and sort options for subscription feed

This commit is contained in:
Omar Roth
2018-07-18 09:15:58 -05:00
parent 9c3bf5fd27
commit 18f8a4ae1a
3 changed files with 50 additions and 3 deletions

View File

@@ -25,6 +25,8 @@ DEFAULT_USER_PREFERENCES = Preferences.from_json({
"volume" => 100,
"dark_mode" => false,
"max_results" => 40,
"sort" => "published",
"latest_only" => false,
}.to_json)
class Config
@@ -144,6 +146,8 @@ class Preferences
volume: Int32,
dark_mode: Bool,
max_results: Int32,
sort: String,
latest_only: Bool,
})
end