fix seeing gifts from other people on your list (#36)

This commit is contained in:
Wingy 2022-10-04 09:18:50 -04:00 committed by GitHub
parent ef77a280ea
commit 001b81d6b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,12 @@
extends layout.pug extends layout.pug
mixin wishlistDetails(wishlist) mixin wishlistDetails(wishlist, onlyShowAddedByUser)
details.wishlist-details details.wishlist-details
summary summary
ul ul
for item in wishlist for item in wishlist
li= item.name if onlyShowAddedByUser === undefined || item.addedBy === onlyShowAddedByUser
li= item.name
block content block content
style. style.
@ -40,7 +41,7 @@ block content
span span
span=lang('WISHLISTS_COUNTS_SELF', req.user._id) span=lang('WISHLISTS_COUNTS_SELF', req.user._id)
progress.progress(value=1, max=1) progress.progress(value=1, max=1)
+wishlistDetails(req.user.wishlist) +wishlistDetails(req.user.wishlist, req.user._id)
each user in users each user in users
if req.user._id !== user.id if req.user._id !== user.id
li li