node-steamcommunity icon indicating copy to clipboard operation
node-steamcommunity copied to clipboard

Fix resolving vanity for private profiles returning error

Open 3urobeat opened this issue 2 years ago • 1 comments

This PR fixes #313 (again)
Steam does not provide a customURL key in the XML data for private profiles which is something I did not expect when working on the previous PR.

To keep support for providing /profiles/steamID64 links I have added an if check that only parses the URL param as a fallback option.
If a /profiles/steamID64 link was provided to a private profile there is nothing we can do so I am returning an empty string.

I hope there is no other oversight hidden in this function now

3urobeat avatar Jun 27 '23 20:06 3urobeat

Hey, sorry for bumping, but it would be cool if you could review this PR as it fixes bugs present in the master branch.
(There are also two more of my PRs still open, but they add new features and merge into v4 instead)

3urobeat avatar May 05 '24 10:05 3urobeat