Fix missing code

https://github.com/LinkStackOrg/LinkStack/issues/679
This commit is contained in:
Julian Prieber 2024-01-02 20:27:15 +01:00
parent 90b4974d7d
commit 538707bd05
1 changed files with 7 additions and 0 deletions

View File

@ -789,6 +789,7 @@ class UserController extends Controller
$name = $request->name;
$checkmark = $request->checkmark;
$sharebtn = $request->sharebtn;
$tablinks = $request->tablinks;
if(env('HOME_URL') !== '' && $pageName != $littlelink_name && $littlelink_name == env('HOME_URL')){
EnvEditor::editKey('HOME_URL', $pageName);
@ -817,6 +818,12 @@ class UserController extends Controller
UserData::saveData($userId, 'disable-sharebtn', true);
}
if ($tablinks == "on") {
UserData::saveData($userId, 'links-new-tab', true);
} else {
UserData::saveData($userId, 'links-new-tab', false);
}
return Redirect('/studio/page');
}