From 27cc07e985a799fae791d6edf61b7e656e0e182e Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Wed, 13 Nov 2024 15:02:10 -0500 Subject: [PATCH] fix: files shared array in notification --- src/backend/src/structured/sequence/share.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/src/structured/sequence/share.js b/src/backend/src/structured/sequence/share.js index 7c248b8d..008e5b4f 100644 --- a/src/backend/src/structured/sequence/share.js +++ b/src/backend/src/structured/sequence/share.js @@ -506,7 +506,7 @@ module.exports = new Sequence([ const files = []; { for ( const item of shares_work.list() ) { - if ( item.type !== 'file' ) continue; + if ( item.thing.$ !== 'fs-share' ) continue; files.push( await item.node.getSafeEntry(), ); @@ -515,7 +515,7 @@ module.exports = new Sequence([ const apps = []; { for ( const item of shares_work.list() ) { - if ( item.type !== 'app' ) continue; + if ( item.thing.$ !== 'app' ) continue; // TODO: is there a general way to create a // client-safe app right now without // going through entity storage?