From e4c1f143001c25c91daa696df773b4d24839ec41 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Fri, 17 Feb 2023 22:47:15 +0100 Subject: [PATCH] add title to shared items --- router/album.js | 1 + router/box.js | 1 + 2 files changed, 2 insertions(+) diff --git a/router/album.js b/router/album.js index bc66154..a4434be 100644 --- a/router/album.js +++ b/router/album.js @@ -127,6 +127,7 @@ router.route("/:id/share") let item = { user_id: req.user._id, object_id: album._id, + title: album.title, type: "album", cover: album.covers.cover32 } diff --git a/router/box.js b/router/box.js index 6be5401..947fdf7 100644 --- a/router/box.js +++ b/router/box.js @@ -129,6 +129,7 @@ router.route("/:id/share") let item = { user_id: req.user._id, object_id: box._id, + title: box.title, type: "box", cover: box.covers.cover32 }