summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2013-06-25 13:44:21 -0700
committerGilbert Gonzales <gilbert@lindenlab.com>2013-06-25 13:44:21 -0700
commitd63dd9d442a2c30b26163cdaf475ed31070aa92b (patch)
tree69ca6a070a4ebb21dca4e9cb7acdaad94191e07f /indra
parent7eae0afabc1b809a756b947c08d05f14f4b9d4e0 (diff)
ACME-588 Make 'Post' button post to facebook
Diffstat (limited to 'indra')
-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 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();
}