Skip to content

Commit

Permalink
Removed force_i18n in API v2 settings serializer
Browse files Browse the repository at this point in the history
refs TryGhost#10582

- deprecated
- won't serve
- won't save
  • Loading branch information
kirrg001 committed Mar 11, 2019
1 parent bfccaa8 commit 20ab965
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/server/api/v2/utils/serializers/input/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,12 @@ module.exports = {
setting = url.forSetting(setting);
}
});

// CASE: deprecated, won't accept
const index = _.findIndex(frame.data.settings, {key: 'force_i18n'});

if (index !== -1) {
frame.data.settings.splice(index, 1);
}
}
};

0 comments on commit 20ab965

Please sign in to comment.