1
0
mirror of https://github.com/byulmaru/quesdon synced 2024-11-27 06:18:02 +09:00

cherrypick, Castella 추가

This commit is contained in:
robin* 2022-09-12 00:55:25 +09:00
parent 074b2b10bb
commit 5f9836bd50

View File

@ -47,7 +47,11 @@ router.post('/get_url', async (ctx: Koa.ParameterizedContext): Promise<never|voi
else
{
const instanceType = await detectInstance(`https://${hostName}`);
if (instanceType === 'misskey')
if (
instanceType === 'misskey' ||
instanceType === 'cherrypick' ||
instanceType === 'Castella'
)
{
let app = await MastodonApp.findOne( { hostName, appBaseUrl: BASE_URL, redirectUri } );
if (!app) // if it's the first time user from this instance is using quesdon