Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
6a89cb6f
Commit
6a89cb6f
authored
11 years ago
by
Merov Linden
Browse files
Options
Downloads
Plain Diff
Pull merge from lindenlab/viewer-acme
parents
26a6668f
88f13959
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/newview/llfloatertwitter.cpp
+8
-1
8 additions, 1 deletion
indra/newview/llfloatertwitter.cpp
with
8 additions
and
1 deletion
indra/newview/llfloatertwitter.cpp
+
8
−
1
View file @
6a89cb6f
...
@@ -53,6 +53,7 @@ static LLRegisterPanelClassWrapper<LLTwitterPhotoPanel> t_panel_photo("lltwitter
...
@@ -53,6 +53,7 @@ static LLRegisterPanelClassWrapper<LLTwitterPhotoPanel> t_panel_photo("lltwitter
static
LLRegisterPanelClassWrapper
<
LLTwitterAccountPanel
>
t_panel_account
(
"lltwitteraccountpanel"
);
static
LLRegisterPanelClassWrapper
<
LLTwitterAccountPanel
>
t_panel_account
(
"lltwitteraccountpanel"
);
const
S32
MAX_POSTCARD_DATASIZE
=
1024
*
1024
;
// one megabyte
const
S32
MAX_POSTCARD_DATASIZE
=
1024
*
1024
;
// one megabyte
const
std
::
string
DEFAULT_PHOTO_LOCATION_URL
=
"http://maps.secondlife.com/"
;
const
std
::
string
DEFAULT_PHOTO_QUERY_PARAMETERS
=
"?sourceid=slshare_photo&utm_source=twitter&utm_medium=photo&utm_campaign=slshare"
;
const
std
::
string
DEFAULT_PHOTO_QUERY_PARAMETERS
=
"?sourceid=slshare_photo&utm_source=twitter&utm_medium=photo&utm_campaign=slshare"
;
///////////////////////////
///////////////////////////
...
@@ -271,6 +272,13 @@ void LLTwitterPhotoPanel::sendPhoto()
...
@@ -271,6 +272,13 @@ void LLTwitterPhotoPanel::sendPhoto()
LLAgentUI
::
buildSLURL
(
slurl
);
LLAgentUI
::
buildSLURL
(
slurl
);
std
::
string
slurl_string
=
slurl
.
getSLURLString
();
std
::
string
slurl_string
=
slurl
.
getSLURLString
();
// Use a valid http:// URL if the scheme is secondlife://
LLURI
slurl_uri
(
slurl_string
);
if
(
slurl_uri
.
scheme
()
==
LLSLURL
::
SLURL_SECONDLIFE_SCHEME
)
{
slurl_string
=
DEFAULT_PHOTO_LOCATION_URL
;
}
// Add query parameters so Google Analytics can track incoming clicks!
// Add query parameters so Google Analytics can track incoming clicks!
slurl_string
+=
DEFAULT_PHOTO_QUERY_PARAMETERS
;
slurl_string
+=
DEFAULT_PHOTO_QUERY_PARAMETERS
;
...
@@ -281,7 +289,6 @@ void LLTwitterPhotoPanel::sendPhoto()
...
@@ -281,7 +289,6 @@ void LLTwitterPhotoPanel::sendPhoto()
status
=
status
+
" "
+
slurl_string
;
status
=
status
+
" "
+
slurl_string
;
}
}
// Add the photo if required
// Add the photo if required
bool
add_photo
=
mPhotoCheckbox
->
getValue
().
asBoolean
();
bool
add_photo
=
mPhotoCheckbox
->
getValue
().
asBoolean
();
if
(
add_photo
)
if
(
add_photo
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment