Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3526000
D9146.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D9146.diff
View Options
diff --git a/keyserver/src/utils/validation-utils.js b/keyserver/src/utils/validation-utils.js
--- a/keyserver/src/utils/validation-utils.js
+++ b/keyserver/src/utils/validation-utils.js
@@ -31,9 +31,8 @@
viewer: Viewer,
inputValidator: TType<T>,
input: mixed,
- ignoreViewerVersion?: boolean,
): Promise<T> {
- if (!ignoreViewerVersion && !viewer.isSocket) {
+ if (!viewer.isSocket) {
await checkClientSupported(viewer, inputValidator, input);
}
const convertedInput = checkInputValidator(inputValidator, input);
@@ -42,8 +41,7 @@
hasMinStateVersion(viewer.platformDetails, {
native: 43,
web: 3,
- }) ||
- ignoreViewerVersion
+ })
) {
try {
return convertClientIDsToServerIDs(
@@ -63,7 +61,6 @@
platformDetails: ?PlatformDetails,
outputValidator: TType<T>,
data: T,
- alwaysConvertSchema?: boolean,
): T {
if (!outputValidator.is(data)) {
console.trace(
@@ -77,8 +74,7 @@
hasMinStateVersion(platformDetails, {
native: 43,
web: 3,
- }) ||
- alwaysConvertSchema
+ })
) {
return convertServerIDsToClientIDs(
ashoatKeyserverID,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 7:09 PM (8 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2700857
Default Alt Text
D9146.diff (1 KB)
Attached To
Mode
D9146: [keyserver] Remove unused params in validation functions
Attached
Detach File
Event Timeline
Log In to Comment