Merge pull request #6 from riandyrn/attempt-generalized-number-of-tags-sent-to-server
[Attempt to Generalize Number of Tags Sent to Server]
This commit is contained in:
+8
-4
@@ -117,9 +117,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Construct a user discovery tag
|
// Construct a user discovery tag
|
||||||
function to_tag(tagname, value) {
|
function to_tags(tagsObj) {
|
||||||
if (tagname && value) {
|
if(tagsObj && Object.keys(tagsObj).length > 0) {
|
||||||
return [tagname + ":" + value];
|
var tags = [];
|
||||||
|
for(var key in tagsObj) {
|
||||||
|
tags.push(key + ":" + tagsObj[key]);
|
||||||
|
}
|
||||||
|
return tags;
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
@@ -693,7 +697,7 @@
|
|||||||
this.state.password.trim(),
|
this.state.password.trim(),
|
||||||
vcard(this.state.fn, this.state.imageDataUrl),
|
vcard(this.state.fn, this.state.imageDataUrl),
|
||||||
null,
|
null,
|
||||||
to_tag("email", this.state.email));
|
to_tags({"email": this.state.email}));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
render: function() {
|
render: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user