]> git.mxchange.org Git - friendica.git/commitdiff
Fix the preview mode setting
authorMichael <heluecht@pirati.ca>
Fri, 17 Nov 2023 23:30:28 +0000 (23:30 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 17 Nov 2023 23:30:28 +0000 (23:30 +0000)
src/Module/Settings/Display.php

index 3cb5e44e2d7e1dfd2267b4e5b19cf74795271183..60bc5e5e0a3a247d31200f37105e0c8e2312bb7f 100644 (file)
@@ -108,7 +108,7 @@ class Display extends BaseSettings
                $display_resharer       = (bool)$request['display_resharer'];
                $stay_local             = (bool)$request['stay_local'];
                $show_page_drop         = (bool)$request['show_page_drop'];
-               $preview_mode           = (bool)$request['preview_mode'];
+               $preview_mode           = (int)$request['preview_mode'];
                $browser_update         = (bool)$request['browser_update'];
                if ($browser_update != -1) {
                        $browser_update = $browser_update * 1000;