Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3394309
D11610.id38968.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
D11610.id38968.diff
View Options
diff --git a/keyserver/src/responders/relationship-responders.js b/keyserver/src/responders/relationship-responders.js
--- a/keyserver/src/responders/relationship-responders.js
+++ b/keyserver/src/responders/relationship-responders.js
@@ -5,7 +5,7 @@
import {
type TraditionalRelationshipRequest,
type RelationshipErrors,
- relationshipActionsList,
+ traditionalRelationshipActionsList,
} from 'lib/types/relationship-types.js';
import { tShape } from 'lib/utils/validation-utils.js';
@@ -14,7 +14,10 @@
export const updateRelationshipInputValidator: TInterface<TraditionalRelationshipRequest> =
tShape<TraditionalRelationshipRequest>({
- action: t.enums.of(relationshipActionsList, 'relationship action'),
+ action: t.enums.of(
+ traditionalRelationshipActionsList,
+ 'relationship action',
+ ),
userIDs: t.list(t.String),
});
diff --git a/lib/types/relationship-types.js b/lib/types/relationship-types.js
--- a/lib/types/relationship-types.js
+++ b/lib/types/relationship-types.js
@@ -55,6 +55,8 @@
export type TraditionalRelationshipAction = $Values<
typeof traditionalRelationshipActions,
>;
+export const traditionalRelationshipActionsList: $ReadOnlyArray<TraditionalRelationshipAction> =
+ values(traditionalRelationshipActions);
export const relationshipButtons = Object.freeze({
FRIEND: 'friend',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 1, 6:59 PM (20 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2605848
Default Alt Text
D11610.id38968.diff (1 KB)
Attached To
Mode
D11610: [keyserver] Narrow `updateRelationshipInputValidator` to exclude `farcaster` action
Attached
Detach File
Event Timeline
Log In to Comment