Skip to content

Commit

Permalink
Add Support Cherrypick (#4)
Browse files Browse the repository at this point in the history
* Add Support for cherrypick

* Add Support Cherrypick
  • Loading branch information
tawastory authored Oct 8, 2024
1 parent 94e2305 commit fe87c29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/api/web/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/web/questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fe87c29

Please sign in to comment.