diff options
-rw-r--r-- | indra/newview/llfloatersocial.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llfloatersocial.cpp b/indra/newview/llfloatersocial.cpp index f2110e09c1..52a4e090f3 100644 --- a/indra/newview/llfloatersocial.cpp +++ b/indra/newview/llfloatersocial.cpp @@ -350,9 +350,11 @@ void LLSocialPhotoPanel::onSend() else caption = caption + " " + slurl.getSLURLString(); } - //LLFacebookConnect::instance().sharePhoto(LLFloaterSnapshot::getImageData(), caption); - //LLWebProfile::uploadImage(LLFloaterSnapshot::getImageData(), caption, add_location, boost::bind(&LLPanelSnapshotFacebook::onImageUploaded, this, caption, _1)); - //LLFloaterSnapshot::postSave(); + + LLSnapshotLivePreview* previewp = getPreviewView(); + + LLFacebookConnect::instance().sharePhoto(previewp->getFormattedImage(), caption); + updateControls(); } |