mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-27 01:39:53 +01:00
fix: rename activitypub.out.announce.category, federate out Delete on topic move to cid -1
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user