fix(server): cookieが取得されないのを修正
This commit is contained in:
@@ -13,8 +13,8 @@ import { GlobalEventService } from '@/core/GlobalEventService.js';
|
||||
import { MetaService } from '@/core/MetaService.js';
|
||||
import { UserEntityService } from '@/core/entities/UserEntityService.js';
|
||||
import { FastifyReplyError } from '@/misc/fastify-reply-error.js';
|
||||
import { SigninService } from '../SigninService.js';
|
||||
import { bindThis } from '@/decorators.js';
|
||||
import { SigninService } from '../SigninService.js';
|
||||
|
||||
@Injectable()
|
||||
export class TwitterServerService {
|
||||
@@ -127,7 +127,7 @@ export class TwitterServerService {
|
||||
const twAuth = await getTwAuth();
|
||||
|
||||
if (userToken == null) {
|
||||
const sessid = request.cookies.get('signin_with_twitter_sid');
|
||||
const sessid = request.cookies['signin_with_twitter_sid'];
|
||||
|
||||
if (sessid == null) {
|
||||
throw new FastifyReplyError(400, 'invalid session');
|
||||
|
Reference in New Issue
Block a user