feat: server-side routes for handling multiple topic thumbnails

closes #8994, requires 'topic-thumb-refactor' branch of composer-default
This commit is contained in:
Julian Lam
2020-12-01 10:37:42 -05:00
parent 98cd9e3549
commit 7e9e08f718
6 changed files with 96 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ topicsAPI.create = async function (caller, data) {
}
const result = await topics.post(payload);
await topics.thumbs.commit(data.uuid, result.topicData.tid);
socketHelpers.emitToUids('event:new_post', { posts: [result.postData] }, [caller.uid]);
socketHelpers.emitToUids('event:new_topic', result.topicData, [caller.uid]);