fix: rename activitypub.out.announce.category, federate out Delete on topic move to cid -1

This commit is contained in:
Julian Lam
2025-11-06 11:59:56 -05:00
parent e6911be35d
commit 9bb8a955cf
3 changed files with 6 additions and 5 deletions

View File

@@ -267,7 +267,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
if (!hasTid && options.cid) {
// New topic, have category announce it
activitypub.out.announce.category(tid);
activitypub.out.announce.topic(tid);
}
return { tid, count };

View File

@@ -279,7 +279,7 @@ Out.like.note = enabledCheck(async (uid, pid) => {
Out.announce = {};
Out.announce.category = enabledCheck(async (tid) => {
Out.announce.topic = enabledCheck(async (tid) => {
const { mainPid: pid, cid } = await topics.getTopicFields(tid, ['mainPid', 'cid']);
// Only local categories can announce