mirror of
https://github.com/wekan/wekan.git
synced 2026-02-20 23:14:07 +01:00
Fix bugs
This commit is contained in:
parent
71eb01e233
commit
0f4ff6e30e
2 changed files with 8 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue