From 001b81d6b502ccc2451331a492dbfbaf9de8f9ae Mon Sep 17 00:00:00 2001 From: Wingy Date: Tue, 4 Oct 2022 09:18:50 -0400 Subject: [PATCH] fix seeing gifts from other people on your list (#36) --- views/wishlists.pug | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/views/wishlists.pug b/views/wishlists.pug index 5106a84..3769d5b 100644 --- a/views/wishlists.pug +++ b/views/wishlists.pug @@ -1,11 +1,12 @@ extends layout.pug -mixin wishlistDetails(wishlist) +mixin wishlistDetails(wishlist, onlyShowAddedByUser) details.wishlist-details summary ul for item in wishlist - li= item.name + if onlyShowAddedByUser === undefined || item.addedBy === onlyShowAddedByUser + li= item.name block content style. @@ -40,7 +41,7 @@ block content span span=lang('WISHLISTS_COUNTS_SELF', req.user._id) progress.progress(value=1, max=1) - +wishlistDetails(req.user.wishlist) + +wishlistDetails(req.user.wishlist, req.user._id) each user in users if req.user._id !== user.id li