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 }