fixed following/unfollowing
This commit is contained in:
parent
16d7016e29
commit
771243a75f
4 changed files with 44 additions and 19 deletions
|
@ -38,10 +38,9 @@ function(jQuery, HostApp, Hmac, Cache) {
|
|||
} else {
|
||||
if(options.content_type == "application/json") {
|
||||
content_type = "application/json";
|
||||
} else {
|
||||
} else if(options.content_type) {
|
||||
content_type = "application/vnd.tent.post.v0+json; type=\"" + options.content_type + "\"";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
var settings = {
|
||||
|
@ -120,6 +119,20 @@ function(jQuery, HostApp, Hmac, Cache) {
|
|||
APICalls.http_call(settings);
|
||||
}
|
||||
|
||||
APICalls.delete = function(url, options) {
|
||||
var settings = {
|
||||
url: url,
|
||||
http_method: "DELETE"
|
||||
};
|
||||
|
||||
for (var key in options) {
|
||||
settings[key] = options[key];
|
||||
}
|
||||
|
||||
APICalls.http_call(settings);
|
||||
}
|
||||
|
||||
|
||||
APICalls.postMultipart = function(url, callback, data, boundary, accepts) {
|
||||
|
||||
accepts = accepts || "application/vnd.tent.v0+json";
|
||||
|
|
|
@ -236,6 +236,7 @@ function(jQuery, APICalls, URI, HostApp, Cache) {
|
|||
}
|
||||
|
||||
if(bungloo.cache.profiles[status.entity].name) template.username.innerText = bungloo.cache.profiles[status.entity].name;
|
||||
else template.username.innerText = status.entity;
|
||||
template.username.href = status.entity;
|
||||
template.username.title = status.entity;
|
||||
template.username.onclick = function() {
|
||||
|
|
Reference in a new issue