From e36d764aaa22458f1d8b5083105c85db164c7fda Mon Sep 17 00:00:00 2001 From: Matthew Jorgensen Date: Wed, 1 Oct 2025 14:03:18 +0200 Subject: [PATCH] [feature] Preserve 'mastodon-settings' from localStorage on logout (#66) This preserves the settings for the FE, things like theme, etc. --- Retains the `mastodon-settings` object from localStorage on logout. I think this is safe to do, it doesn't appear there's any instance-specific or otherwise sensitive info in this object: ```json { "side_arm_reply_mode": "keep", "media": { "use_blurhash": true, "letterbox": false, "fullwidth": true, "reveal_behind_cw": false, "pop_in_player": true, "pop_in_position": "right" }, "stretch": true, "inline_preview_cards": true, "hicolor_privacy_icons": false, "notifications": { "favicon_badge": false, "tab_badge": true }, "confirm_missing_media_description": false, "theme": "mastodon", "layout": "mobile", "preselect_on_reply": false, "status_icons": { "language": true, "reply": true, "local_only": true, "media": true, "visibility": true }, "prepend_cw_re": false, "confirm_boost_missing_media_description": false, "tag_misleading_links": true, "side_arm": "none", "collapsed": { "enabled": true, "auto": { "all": false, "notifications": false, "lengthy": true, "reblogs": false, "replies": false, "media": false, "height": 400 }, "backgrounds": { "user_backgrounds": false, "preview_images": false }, "show_action_bar": true }, "show_reply_count": false, "confirm_before_clearing_draft": true, "rewrite_mentions": "no", "content_warnings": { "auto_unfold": false, "filter": null, "media_outside": true, "shared_state": true }, "always_show_spoilers_field": true, "show_content_type_choice": true } ``` Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/66 Co-authored-by: Matthew Jorgensen Co-committed-by: Matthew Jorgensen --- public/logout.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/logout.html b/public/logout.html index b0ff32c89..aba2cc5b0 100644 --- a/public/logout.html +++ b/public/logout.html @@ -4,7 +4,11 @@ Logout | Masto-FE (🦥 flavour)