Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions __tests__/boot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,7 @@ describe('boot misc', () => {
sidebarBookmarksExpanded: true,
clickbaitShieldEnabled: true,
browsingContextEnabled: false,
legacyPostLayoutOptOut: false,
},
});
expect(res.body.settings.flags.removedFlag).toBeUndefined();
Expand Down
2 changes: 2 additions & 0 deletions src/common/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const transformSettingFlags = ({ flags }: Pick<Settings, 'flags'>) => {
timezoneMismatchIgnore,
lastPrompt,
defaultWriteTab,
legacyPostLayoutOptOut,
} = flags ?? {};

return {
Expand All @@ -27,5 +28,6 @@ export const transformSettingFlags = ({ flags }: Pick<Settings, 'flags'>) => {
timezoneMismatchIgnore,
lastPrompt,
defaultWriteTab,
legacyPostLayoutOptOut: legacyPostLayoutOptOut ?? false,
};
};
2 changes: 2 additions & 0 deletions src/entity/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export type SettingsFlags = Partial<{
timezoneMismatchIgnore: string;
lastPrompt: string;
defaultWriteTab: DefaultWriteTab;
legacyPostLayoutOptOut: boolean;
}>;

export type SettingsFlagsPublic = Pick<
Expand All @@ -53,6 +54,7 @@ export type SettingsFlagsPublic = Pick<
| 'timezoneMismatchIgnore'
| 'lastPrompt'
| 'defaultWriteTab'
| 'legacyPostLayoutOptOut'
>;

@Entity()
Expand Down
2 changes: 2 additions & 0 deletions src/schema/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const typeDefs = /* GraphQL */ `
timezoneMismatchIgnore: String
lastPrompt: String
defaultWriteTab: DefaultWriteTab
legacyPostLayoutOptOut: Boolean
}

input SettingsFlagsPublicInput {
Expand All @@ -90,6 +91,7 @@ export const typeDefs = /* GraphQL */ `
timezoneMismatchIgnore: String
lastPrompt: String
defaultWriteTab: DefaultWriteTab
legacyPostLayoutOptOut: Boolean
}

"""
Expand Down
Loading