aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-05-20 22:33:22 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-05-20 22:33:22 +0300
commit7a4fa55d86ac1304d79302b805cf6c53a61e2b72 (patch)
tree0dfc49e24e977ff5221ced9e40bc519ed290dce5 /pkg/app/utils/userdata.go
parentupdate templ (diff)
downloadsoko-7a4fa55d86ac1304d79302b805cf6c53a61e2b72.tar.gz
soko-7a4fa55d86ac1304d79302b805cf6c53a61e2b72.tar.bz2
soko-7a4fa55d86ac1304d79302b805cf6c53a61e2b72.zip
remove packages preferences
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'pkg/app/utils/userdata.go')
-rw-r--r--pkg/app/utils/userdata.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/pkg/app/utils/userdata.go b/pkg/app/utils/userdata.go
index dc4258b..13874f8 100644
--- a/pkg/app/utils/userdata.go
+++ b/pkg/app/utils/userdata.go
@@ -22,14 +22,6 @@ func GetUserPreferences(r *http.Request) models.UserPreferences {
}
}
- cookie, err = r.Cookie("userpref_packages")
- if err == nil {
- cookieValue, err := b64.StdEncoding.DecodeString(cookie.Value)
- if err == nil {
- json.Unmarshal(cookieValue, &userPreferences.Packages)
- }
- }
-
cookie, err = r.Cookie("userpref_maintainers")
if err == nil {
cookieValue, err := b64.StdEncoding.DecodeString(cookie.Value)
@@ -38,6 +30,7 @@ func GetUserPreferences(r *http.Request) models.UserPreferences {
}
}
+ // old cookie: userpref_packages
// old cookie: userpref_useflags
// old cookie: userpref_arches