From 46646090472fac10ea0573bf2c4d638bdb043ef8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 10 Apr 2023 21:13:57 -0500 Subject: [PATCH] apps: add comments --- src/api/apps.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/api/apps.ts b/src/api/apps.ts index 2ea7fe83..cdaa1246 100644 --- a/src/api/apps.ts +++ b/src/api/apps.ts @@ -1,12 +1,16 @@ import type { Context } from '@/deps.ts'; +/** + * Apps are unnecessary cruft in Mastodon API, but necessary to make clients work. + * So when clients try to "create" an app, pretend they did and return a hardcoded app. + */ const FAKE_APP = { id: '1', name: 'Ditto', website: null, redirect_uri: 'urn:ietf:wg:oauth:2.0:oob', - client_id: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', - client_secret: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', + client_id: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', // he cry + client_secret: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', // 😱 😱 😱 vapid_key: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=', };