feat: also include category in to field when mocking post for federation

This commit is contained in:
Julian Lam
2025-03-13 16:06:06 -04:00
parent 1f40995f79
commit f73f727d90
3 changed files with 2 additions and 2 deletions

View File

@@ -79,6 +79,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
const hasTid = !!tid;
const cid = hasTid ? await topics.getTopicField(tid, 'cid') : options.cid || -1;
if (options.cid && cid === -1) {
// Move topic if currently uncategorized
await topics.tools.move(tid, { cid: options.cid, uid: 'system' });