InterfacePreference

Represents a user's preferences.

interface Preference {
    posting:default:language: string;
    posting:default:sensitive: boolean;
    posting:default:visibility: StatusVisibility;
    reading:autoplay:gifs: boolean;
    reading:expand:media: PreferenceReadingExpandMedia;
    reading:expand:spoilers: boolean;
}

Properties

posting:default:language: string

Default language for new posts. Equivalent to Source#language

posting:default:sensitive: boolean

Default sensitivity flag for new posts. Equivalent to Source#sensitive.

posting:default:visibility: StatusVisibility

Default visibility for new posts. Equivalent to Source#privacy.

reading:autoplay:gifs: boolean

Whether GIFs should be automatically played

reading:expand:media: PreferenceReadingExpandMedia

Whether media attachments should be automatically displayed or blurred/hidden.

reading:expand:spoilers: boolean

Whether CWs should be expanded by default.