check officialPinnedItems for gala gear in market (#10745)

This commit is contained in:
Kirsty
2018-10-13 19:07:30 +01:00
committed by Matteo Pagliazzi
parent 2304d970a5
commit f161987e1e

View File

@@ -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));
}