From 35cbec43e6c170d6dad68cd6d2bc505c755eef1d Mon Sep 17 00:00:00 2001 From: KernelDeimos Date: Sun, 16 Jun 2024 22:00:04 -0400 Subject: [PATCH] tweak: add full fsentry to share notification --- packages/backend/src/routers/share.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/routers/share.js b/packages/backend/src/routers/share.js index 0a769693..0135dfd2 100644 --- a/packages/backend/src/routers/share.js +++ b/packages/backend/src/routers/share.js @@ -119,8 +119,9 @@ const handler_item_by_username = async (req, res) => { template: 'file-shared-with-you', fields: { username: req.user.username, - type: wut, - filename: await node.get('name'), + files: [ + await node.getSafeEntry(), + ], }, text: `The user ${quot(req.user.username)} shared a ${wut} ` + `with you called ${quot(await node.get('name'))}`