Removed bitly shortening

This commit is contained in:
benweet 2014-02-16 16:42:01 +00:00
parent fe7bb53b33
commit 8829863439

View File

@ -37,6 +37,8 @@ define([
callback(); callback();
return; return;
} }
// Twitter does that for us
/*
var task = new AsyncTask(); var task = new AsyncTask();
var shortUrl; var shortUrl;
task.onRun(function() { task.onRun(function() {
@ -77,6 +79,20 @@ define([
task.onSuccess(onFinish); task.onSuccess(onFinish);
task.onError(onFinish); task.onError(onFinish);
task.enqueue(); task.enqueue();
*/
var url = [
constants.MAIN_URL,
'viewer#!provider=',
provider.providerId
];
_.each(provider.sharingAttributes, function(attributeName) {
url.push('&');
url.push(attributeName);
url.push('=');
url.push(encodeURIComponent(attributes[attributeName]));
});
attributes.sharingLink = url.join('');
callback();
}; };
eventMgr.addListener("onReady", function() { eventMgr.addListener("onReady", function() {