mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: attach announcers and their followers to cc, not to targets, only attach announcers to targets
This commit is contained in:
@@ -116,7 +116,8 @@ async function buildRecipients(object, { pid, uid }) {
|
|||||||
const announcersFollowers = (await user.getUsersFields(announcers, ['followersUrl']))
|
const announcersFollowers = (await user.getUsersFields(announcers, ['followersUrl']))
|
||||||
.filter(o => o.hasOwnProperty('followersUrl'))
|
.filter(o => o.hasOwnProperty('followersUrl'))
|
||||||
.map(({ followersUrl }) => followersUrl);
|
.map(({ followersUrl }) => followersUrl);
|
||||||
[...announcers, ...announcersFollowers].forEach(uri => targets.add(uri));
|
[...announcers].forEach(uri => targets.add(uri));
|
||||||
|
[...announcers, ...announcersFollowers].forEach(uri => cc.add(uri));
|
||||||
}
|
}
|
||||||
|
|
||||||
object.to = Array.from(to);
|
object.to = Array.from(to);
|
||||||
|
|||||||
Reference in New Issue
Block a user