Compare commits

..

No commits in common. "7bd7fa90c4c8ddc59c0a161243f70141c8233053" and "7b3ae700739eb52532d08a43ca3ce46176a52608" have entirely different histories.

View File

@ -37,6 +37,7 @@
.then(function (result) {
if (result != "N/A") {
var response = JSON.parse(result);
setPostMetrics(response);
if(!response.postExists){
postDetails.likes = postDetails.views = postDetails.comments = 0;
if(Number(likes.innerText) !== NaN){
@ -48,15 +49,15 @@
if(postDetails.modifiedDate === ""){
postDetails.modifiedDate = postDetails.createdDate;
}
}
ajax(serviceUrl + "/CreatePost", "POST", postDetails)
ajax(serviceUrl + "/CreatePost", "POST", postDetails)
.then(function (result) {
if(result != "N/A"){
var response = JSON.parse(result);
setPostMetrics(response);
}
});
}
}
});