DoctorMcKay / node-steamcommunity

Interact with various interfaces on Steam Community from Node.js
https://dev.doctormckay.com/forum/8-node-steamcommunity/
MIT License
475 stars 128 forks source link

Empty giftnames can be valid #345

Open Revadike opened 5 months ago

Revadike commented 5 months ago

I got an incorrect error from this gift unpack response:

{
   "gift_name" : "",
   "message" : "<div class=\"gift_ownershipcheck\">\r\n\t\t\t<h2>This gift is already in your library.</h2>\r\n\t\t<div class=\"buttons\" id=\"unpack_gift_buttons_4061760541041388893\">\r\n\t\t\t<div class=\"btn_grey_white_innerfade btn_medium\" onclick=\"hideModal( 'gift_modal' );\">\r\n\t\t\t\t<span>OK</span>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div id=\"unpack_gift_buttons_4061760541041388893_wait\" style=\"display: none;\">\r\n\t\t<p>&nbsp;<img src=\"https://community.akamai.steamstatic.com/public/images/login/throbber.gif\">&nbsp;</p>\r\n\t</div>\r\n</div>",
   "owned" : true,
   "packageid" : "29458",
   "success" : 1
}

This should fix it