mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2026-09-06 07:14:54 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec60e1b73e | ||
|
|
a22a75d4e1 | ||
|
|
313753bb05 |
@@ -368,6 +368,11 @@ SteamCommunity.prototype.getUserInventoryContents = function(userID, appID, cont
|
|||||||
if (err) {
|
if (err) {
|
||||||
if (err.message == "HTTP error 403" && body === null) {
|
if (err.message == "HTTP error 403" && body === null) {
|
||||||
// 403 with a body of "null" means the inventory/profile is private.
|
// 403 with a body of "null" means the inventory/profile is private.
|
||||||
|
if(userID.getSteamID64() == self.steamID.getSteamID64()) {
|
||||||
|
// We can never get private profile error for our own inventory!
|
||||||
|
self._notifySessionExpired(err);
|
||||||
|
}
|
||||||
|
|
||||||
callback(new Error("This profile is private."));
|
callback(new Error("This profile is private."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "steamcommunity",
|
"name": "steamcommunity",
|
||||||
"version": "3.30.1",
|
"version": "3.30.2",
|
||||||
"description": "Provides an interface for logging into and interacting with the Steam Community website",
|
"description": "Provides an interface for logging into and interacting with the Steam Community website",
|
||||||
"keywords": ["steam", "steam community"],
|
"keywords": ["steam", "steam community"],
|
||||||
"homepage": "https://github.com/DoctorMcKay/node-steamcommunity",
|
"homepage": "https://github.com/DoctorMcKay/node-steamcommunity",
|
||||||
|
|||||||
Reference in New Issue
Block a user