1
0
mirror of https://github.com/byulmaru/quesdon synced 2024-11-23 14:36:02 +09:00

Add Support Cherrypick (#4)

* Add Support for cherrypick

* Add Support Cherrypick
This commit is contained in:
타와리 2024-10-08 15:47:11 +09:00 committed by GitHub
parent 94e2305a77
commit fe87c29903
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ router.get('/followers', async (ctx: Koa.ParameterizedContext): Promise<never|vo
const instanceUrl = 'https://' + user.acct.split('@')[1];
const instanceType = await detectInstance(instanceUrl);
if (instanceType === 'misskey')
if (instanceType === 'misskey' || instanceType === 'cherrypick')
{
// misskey
const fetchOptions =

View File

@ -134,7 +134,7 @@ router.post('/:id/answer', async (ctx: Koa.ParameterizedContext): Promise<void|n
status.title = '⚠ 이 질문은 답변자가 NSFW하다고 했어요. #quesdon';
}
if (instanceType === 'misskey')
if (instanceType === 'misskey' || instanceType === 'cherrypick')
{
let visibility;
switch(ctx.request.body.visibility)