Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3298902
D11960.id40052.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
705 B
Referenced Files
None
Subscribers
None
D11960.id40052.diff
View Options
diff --git a/lib/utils/validation-utils.js b/lib/utils/validation-utils.js
--- a/lib/utils/validation-utils.js
+++ b/lib/utils/validation-utils.js
@@ -80,6 +80,10 @@
const tEmail: TRegex = tRegex(validEmailRegex);
const tOldValidUsername: TRegex = tRegex(oldValidUsernameRegex);
const tID: TRefinement<string> = t.refinement(t.String, (id: string) => !!id);
+const tUserID: TRefinement<string> = t.refinement(
+ t.String,
+ (id: string) => !!id,
+);
const tMediaMessagePhoto: TInterface<PhotoMessageServerDBContent> = tShape({
type: tString('photo'),
@@ -132,6 +136,7 @@
tEmail,
tOldValidUsername,
tID,
+ tUserID,
tMediaMessagePhoto,
tMediaMessageVideo,
tMediaMessageMedia,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 18, 9:49 AM (20 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2534230
Default Alt Text
D11960.id40052.diff (705 B)
Attached To
Mode
D11960: [lib] Add tUserID
Attached
Detach File
Event Timeline
Log In to Comment