This commit is contained in:
Harry Adel 2026-02-09 19:52:10 +02:00
parent 71eb01e233
commit 0f4ff6e30e
2 changed files with 8 additions and 7 deletions

View file

@ -35,15 +35,16 @@ Meteor.publish('activities', async function(kind, id, limit, showActivities) {
}
// Get linked boards, but only those visible to the user
(await ReactiveCache.getCards({
const linkedCards = await ReactiveCache.getCards({
"type": "cardType-linkedBoard",
"boardId": id
})).forEach(async card => {
});
for (const card of linkedCards) {
const linkedBoard = await ReactiveCache.getBoard(card.linkedId);
if (linkedBoard && linkedBoard.isVisibleBy(this.userId)) {
linkedElmtId.push(card.linkedId);
}
});
}
} else if (kind === 'card') {
const card = await ReactiveCache.getCard(id);
if (!card) {