Fixed Gist sharing
This commit is contained in:
parent
452e3ae27f
commit
8e5d76de24
@ -45,7 +45,7 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
sharing.createLink = function(attributes, callback) {
|
sharing.createLink = function(attributes, callback) {
|
||||||
var provider = providerMap[attributes.provider];
|
var provider = providerMap[attributes.provider.providerId];
|
||||||
// Don't create link if link already exists or provider is not
|
// Don't create link if link already exists or provider is not
|
||||||
// compatible for sharing
|
// compatible for sharing
|
||||||
if(attributes.sharingLink !== undefined || provider === undefined
|
if(attributes.sharingLink !== undefined || provider === undefined
|
||||||
@ -64,7 +64,7 @@ define([
|
|||||||
var url = [
|
var url = [
|
||||||
MAIN_URL,
|
MAIN_URL,
|
||||||
'viewer.html?provider=',
|
'viewer.html?provider=',
|
||||||
attributes.provider
|
provider.providerId
|
||||||
];
|
];
|
||||||
_.each(provider.sharingAttributes, function(attributeName) {
|
_.each(provider.sharingAttributes, function(attributeName) {
|
||||||
url.push('&');
|
url.push('&');
|
||||||
|
Loading…
Reference in New Issue
Block a user