summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/llfloatersocial.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llfloatersocial.cpp b/indra/newview/llfloatersocial.cpp
index 92a291e51c..23e3d35c22 100644
--- a/indra/newview/llfloatersocial.cpp
+++ b/indra/newview/llfloatersocial.cpp
@@ -375,9 +375,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();
}