Stub out missing Elk endpoints

This commit is contained in:
Alex Gleason
2023-05-13 14:27:49 -05:00
parent ab1bb3854a
commit 017a34d5d4
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { AppController } from '@/app.ts';
/**
* Return a default set of preferences for compatibilty purposes.
* Clients like Soapbox do not use this.
*
* https://docs.joinmastodon.org/methods/preferences/
*/
const preferencesController: AppController = (c) => {
return c.json({
'posting:default:visibility': 'public',
'posting:default:sensitive': false,
'posting:default:language': null,
'reading:expand:media': 'default',
'reading:expand:spoilers': false,
});
};
export { preferencesController };