This commit is contained in:
Diogo Peralta Cordeiro 2022-01-15 20:23:23 +00:00
parent 19dd4ba368
commit cb16b627b4
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0

View File

@ -48,6 +48,7 @@ use App\Core\DB\DB;
use App\Core\I18n\I18n; use App\Core\I18n\I18n;
use App\Core\Queue\Queue; use App\Core\Queue\Queue;
use App\Core\Router\Router; use App\Core\Router\Router;
use App\Entity\LocalUser;
use App\Kernel; use App\Kernel;
use App\Security\EmailVerifier; use App\Security\EmailVerifier;
use App\Util\Common; use App\Util\Common;
@ -291,6 +292,7 @@ class GNUsocial implements EventSubscriberInterface
{ {
// TODO: if using 3rd party clients, make sure the user approves access // TODO: if using 3rd party clients, make sure the user approves access
$event->resolveAuthorization(true); $event->resolveAuthorization(true);
$event->setUser(LocalUser::getById(1));
} }
/** /**