diff --git a/website/common/script/libs/getItemInfo.js b/website/common/script/libs/getItemInfo.js index bd65552af6..151ae0bb28 100644 --- a/website/common/script/libs/getItemInfo.js +++ b/website/common/script/libs/getItemInfo.js @@ -338,7 +338,7 @@ module.exports = function getItemInfo (user, type, item, officialPinnedItems, la if (itemInfo) { itemInfo.isSuggested = isItemSuggested(officialPinnedItems, itemInfo); - itemInfo.pinned = isPinned(user, itemInfo); + itemInfo.pinned = isPinned(user, itemInfo, officialPinnedItems); } else { throw new BadRequest(i18n.t('wrongItemType', {type}, language)); }