rystaf / mlmym

a familiar desktop experience for lemmy
GNU Affero General Public License v3.0
246 stars 16 forks source link

Persistent settings #104

Open pintassilgo opened 2 months ago

pintassilgo commented 2 months ago

Whenever I need to login to Lemmy, my mlmym settings (default sort, auto load more...) reset to default. Is this an instance issue or mlmym doesn't allow to store settings?

rystaf commented 2 months ago

your default sort setting is saved in a cookie. auto load more and endless scrolling are saved in browser local storage.

pintassilgo commented 2 months ago

Shouldn't these be stored in instance server, linked to user?

rystaf commented 2 months ago

related #79

couladin commented 3 weeks ago

Just to add to this issue, it appears that the cookie is hard-coded to expire after 30 days (routes.go, line 794) rather than basing it on something like when the user last visited and/or as part of a device/login flush event.

Assuming I've understood it correctly: hard-coded cookie expiration coupled with client-side storage of settings means users need to reconfigure those settings every 30 days, which is an odd design choice. Not breaking, but it is confusing and frustrating.

rystaf commented 2 weeks ago

in version 0.0.49, cookies now refresh every month and will only expire if you don't visit the site for over 10 months.

pintassilgo commented 2 weeks ago

Thanks. It would be great if it could be stored in server side. When I log in old Reddit, Lemmy main UI or anything else, I don't need to set up everything again, it's already saved along my data.