mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
19 lines
530 B
TypeScript
19 lines
530 B
TypeScript
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 };
|