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