Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3707914
D9239.id31316.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
876 B
Referenced Files
None
Subscribers
None
D9239.id31316.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D9239: [keyserver] Prevent non-composable message types from being pinned on the keyserver
Attached
Detach File
Event Timeline
Log In to Comment