Node.js based forum software built for the modern web
fix: inReplyTo bug, #12834
Julian Lamfc1d064dfb62
diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.jsindex 70c55d0e39..60c570f112 100644--- a/src/activitypub/mocks.js+++ b/src/activitypub/mocks.js@@ -488,9 +488,7 @@ Mocks.notes.private = async ({ messageObj }) => {// Get immediately preceding messageconst index = await db.sortedSetRank(`chat:room:${messageObj.roomId}:mids`, messageObj.mid);const previousMid = await db.getSortedSetRange(`chat:room:${messageObj.roomId}:mids`, index - 1, index - 1);- inReplyTo = utils.isNumber(previousMid) ?- `${nconf.get('url')}/message/${previousMid}` :- messageObj.toMid;+ inReplyTo = utils.isNumber(previousMid) ? `${nconf.get('url')}/message/${previousMid}` : previousMid;}const object = {