Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32167916
D5747.1765054308.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
953 B
Referenced Files
None
Subscribers
None
D5747.1765054308.diff
View Options
diff --git a/keyserver/src/creators/message-creator.js b/keyserver/src/creators/message-creator.js
--- a/keyserver/src/creators/message-creator.js
+++ b/keyserver/src/creators/message-creator.js
@@ -131,6 +131,10 @@
? creationString(viewer, messageData.localID)
: null;
+ const targetMessageID = messageData.targetMessageID
+ ? messageData.targetMessageID
+ : null;
+
messageInsertRows.push([
ids[i],
threadID,
@@ -139,6 +143,7 @@
content,
messageData.time,
creation,
+ targetMessageID,
]);
messageInfos.push(rawMessageInfoFromMessageData(messageData, ids[i]));
}
@@ -166,7 +171,8 @@
}
const messageInsertQuery = SQL`
- INSERT INTO messages(id, thread, user, type, content, time, creation)
+ INSERT INTO messages(id, thread, user, type, content, time,
+ creation, target_message)
VALUES ${messageInsertRows}
`;
await Promise.all([
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 8:51 PM (19 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5840742
Default Alt Text
D5747.1765054308.diff (953 B)
Attached To
Mode
D5747: [keyserver] modified createMessages function to handle inserting targetMessageID into the DB
Attached
Detach File
Event Timeline
Log In to Comment