Skip to content

Commit

Permalink
Add host, locale, user_agent to changeset tags (closes openstreetmap#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bhousel authored and paulmach committed Jun 8, 2015
1 parent df39899 commit b1ba252
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/id/core/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,15 @@ iD.Connection = function() {

connection.changesetTags = function(comment, imageryUsed) {
var tags = {
created_by: 'iD ' + iD.version,
host: (window.location.origin + window.location.pathname).substr(0, 255),
locale: iD.detect().locale,
user_agent: navigator.userAgent.substr(0, 255),
imagery_used: imageryUsed.join(';').substr(0, 255),
created_by: 'iD ' + iD.version
};

if (comment) {
tags.comment = comment;
tags.comment = comment.substr(0, 255);
}

return tags;
Expand Down

0 comments on commit b1ba252

Please sign in to comment.