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:
parent
94e2305a77
commit
fe87c29903
@ -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 =
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user