Try to fix: Can't delete attachment.

Thanks to luistiktok and xet7 !

Fixes #4012
This commit is contained in:
Lauri Ojansivu 2021-09-17 04:25:57 +03:00
parent 0bdc3d04b4
commit 889ec1339a

View file

@ -153,7 +153,9 @@ if (Meteor.isServer) {
}
if (activity.listId) {
const list = activity.list();
watchers = _.union(watchers, list.watchers || []);
if (list.watchers !== undefined) {
watchers = _.union(watchers, list.watchers || []);
}
params.list = list.title;
params.listId = activity.listId;
}