steamcommunity 3.43.0 → 3.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -240,14 +240,14 @@ SteamCommunity.prototype.getUserComments = function(userID, options, callback) {
240
240
  return {
241
241
  id: $elem.attr("id").split("_")[1],
242
242
  author: {
243
- id: new SteamID("[U:1:" + $elem.find("[data-miniprofile]").data("miniprofile") + "]"),
243
+ steamID: new SteamID("[U:1:" + $elem.find("[data-miniprofile]").data("miniprofile") + "]"),
244
244
  name: $elem.find("bdi").text(),
245
245
  avatar: $elem.find(".playerAvatar img[src]").attr("src"),
246
246
  state: $elem.find(".playerAvatar").attr("class").split(" ").pop()
247
247
  },
248
248
  date: new Date($elem.find(".commentthread_comment_timestamp").data("timestamp") * 1000),
249
- text: $commentContent.text(),
250
- html: $commentContent.html()
249
+ text: $commentContent.text().trim(),
250
+ html: $commentContent.html().trim()
251
251
  }
252
252
  }).get();
253
253