The Facebook share API only accepts a URL. Fixes #1623

This commit is contained in:
Tom MacWright
2013-07-08 12:10:46 -04:00
parent 0d2345a4a2
commit 7c83200b76

View File

@@ -46,7 +46,7 @@ iD.ui.Success = function(context) {
.attr('target', '_blank')
.attr('href', function() {
return 'https://facebook.com/sharer/sharer.php?u=' +
encodeURIComponent(message);
encodeURIComponent(context.connection().changesetURL(changeset.id));
})
.text(t('success.facebook'));