mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-04 07:26:29 +09:00
fix ogp rendering and refactor
This commit is contained in:
@ -9,7 +9,7 @@ import { publishMainStream } from '@/services/stream.js';
|
||||
export default function(ctx: Koa.Context, user: ILocalUser, redirect = false) {
|
||||
if (redirect) {
|
||||
//#region Cookie
|
||||
ctx.cookies.set('igi', user.token, {
|
||||
ctx.cookies.set('igi', user.token!, {
|
||||
path: '/',
|
||||
// SEE: https://github.com/koajs/koa/issues/974
|
||||
// When using a SSL proxy it should be configured to add the "X-Forwarded-Proto: https" header
|
||||
|
Reference in New Issue
Block a user