|
@@ -229,6 +229,8 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
|
|
|
// Gather queries and send in bulk
|
|
|
const cardComments = this.join(CardComments);
|
|
|
cardComments.selector = _ids => ({ cardId: _ids });
|
|
|
+ const cardCommentsLinkedBoard = this.join(CardComments);
|
|
|
+ cardCommentsLinkedBoard.selector = _ids => ({ boardId: _ids });
|
|
|
const cardCommentReactions = this.join(CardCommentReactions);
|
|
|
cardCommentReactions.selector = _ids => ({ cardId: _ids });
|
|
|
const attachments = this.join(Attachments);
|
|
@@ -242,6 +244,8 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
|
|
|
const boards = this.join(Boards);
|
|
|
const subCards = this.join(Cards);
|
|
|
subCards.selector = _ids => ({ _id: _ids, archived: isArchived });
|
|
|
+ const linkedBoardCards = this.join(Cards);
|
|
|
+ linkedBoardCards.selector = _ids => ({ boardId: _ids });
|
|
|
|
|
|
this.cursor(
|
|
|
Cards.find({
|
|
@@ -258,6 +262,8 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
|
|
|
checklistItems.push(impCardId);
|
|
|
} else if (card.type === 'cardType-linkedBoard') {
|
|
|
boards.push(card.linkedId);
|
|
|
+ linkedBoardCards.push(card.linkedId);
|
|
|
+ cardCommentsLinkedBoard.push(card.linkedId);
|
|
|
}
|
|
|
cardComments.push(cardId);
|
|
|
attachments.push(cardId);
|
|
@@ -277,6 +283,8 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
|
|
|
checklistItems.send();
|
|
|
boards.send();
|
|
|
parentCards.send();
|
|
|
+ linkedBoardCards.send();
|
|
|
+ cardCommentsLinkedBoard.send();
|
|
|
|
|
|
if (board.members) {
|
|
|
// Board members. This publication also includes former board members that
|