Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3492451
D12360.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
824 B
Referenced Files
None
Subscribers
None
D12360.diff
View Options
diff --git a/keyserver/src/responders/activity-responders.js b/keyserver/src/responders/activity-responders.js
--- a/keyserver/src/responders/activity-responders.js
+++ b/keyserver/src/responders/activity-responders.js
@@ -8,6 +8,7 @@
type SetThreadUnreadStatusRequest,
type SetThreadUnreadStatusResult,
type ActivityUpdate,
+ activityUpdateValidator,
} from 'lib/types/activity-types.js';
import { tShape, tID } from 'lib/utils/validation-utils.js';
@@ -18,11 +19,7 @@
} from '../updaters/activity-updaters.js';
const activityUpdatesInputValidator: TList<Array<ActivityUpdate>> = t.list(
- tShape({
- focus: t.Bool,
- threadID: tID,
- latestMessage: t.maybe(tID),
- }),
+ activityUpdateValidator,
);
export const updateActivityResponderInputValidator: TInterface<UpdateActivityRequest> =
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 12:00 AM (20 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679234
Default Alt Text
D12360.diff (824 B)
Attached To
Mode
D12360: [keyserver] Deduplicate validators in activity-responders.js
Attached
Detach File
Event Timeline
Log In to Comment