mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-17 20:34:24 +01:00
Stub out missing Elk endpoints
This commit is contained in:
19
src/controllers/api/preferences.ts
Normal file
19
src/controllers/api/preferences.ts
Normal 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 };
|
||||
Reference in New Issue
Block a user