Bluesky: remove @ and spaces from the handle

pull/1444/head
Michael 2023-12-07 12:03:53 +00:00
parent b6d575c37f
commit 50d8d44489
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ function bluesky_settings_post(array &$b)
$old_handle = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'handle');
$old_did = DI::pConfig()->get(DI::userSession()->getLocalUserId(), 'bluesky', 'did');
$handle = $_POST['bluesky_handle'];
$handle = trim($_POST['bluesky_handle'], ' @');
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'bluesky', 'post', intval($_POST['bluesky']));
DI::pConfig()->set(DI::userSession()->getLocalUserId(), 'bluesky', 'post_by_default', intval($_POST['bluesky_bydefault']));