Page MenuHomePhabricator

D9239.id31316.diff
No OneTemporary

D9239.id31316.diff

diff --git a/keyserver/src/updaters/thread-updaters.js b/keyserver/src/updaters/thread-updaters.js
--- a/keyserver/src/updaters/thread-updaters.js
+++ b/keyserver/src/updaters/thread-updaters.js
@@ -12,6 +12,7 @@
} from 'lib/shared/thread-utils.js';
import type { Shape } from 'lib/types/core.js';
import { messageTypes } from 'lib/types/message-types-enum.js';
+import { isComposableMessageType } from 'lib/types/message-types.js';
import { threadPermissions } from 'lib/types/thread-permission-types.js';
import { threadTypes } from 'lib/types/thread-types-enum.js';
import {
@@ -870,7 +871,7 @@
const { messageID, action } = request;
const targetMessage = await fetchMessageInfoByID(viewer, messageID);
- if (!targetMessage) {
+ if (!targetMessage || !isComposableMessageType(targetMessage.type)) {
throw new ServerError('invalid_parameters');
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 9, 2:14 AM (5 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2825923
Default Alt Text
D9239.id31316.diff (876 B)

Event Timeline