summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-07-23 20:51:41 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-07-23 20:51:41 +0300
commit0a365886f2d06750a707037d894e1492988eb53c (patch)
tree92239e2ae96c43889f5b9c05f35cd8b2ad20a5cc /protocols/SkypeWeb
parentbcd917f6ebe6562311a49588c9e62bbaeeec144b (diff)
code cleaning
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/skype_files.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_files.cpp b/protocols/SkypeWeb/src/skype_files.cpp
index 522e77dadd..a8045419be 100644
--- a/protocols/SkypeWeb/src/skype_files.cpp
+++ b/protocols/SkypeWeb/src/skype_files.cpp
@@ -100,6 +100,7 @@ void CSkypeProto::OnASMObjectUploaded(MHttpResponse *response, AsyncHttpRequest
pRoot->SetAttribute("url_thumbnail", CMStringA(FORMAT, "https://api.asm.skype.com/v1/objects/%s/views/imgt1_anim", fup->uid.get()));
pRoot->SetAttribute("width", FreeImage_GetWidth(pBitmap));
pRoot->SetAttribute("height", FreeImage_GetHeight(pBitmap));
+ pRoot->SetText("To view this file, go to:");
FreeImage_Unload(pBitmap);
href.Format("https://login.skype.com/login/sso?go=xmmfallback?pic=%s", fup->uid.get());
@@ -107,12 +108,10 @@ void CSkypeProto::OnASMObjectUploaded(MHttpResponse *response, AsyncHttpRequest
else {
pRoot->SetAttribute("type", "File.1");
pRoot->SetAttribute("url_thumbnail", CMStringA(FORMAT, "https://api.asm.skype.com/v1/objects/%s/views/original", fup->uid.get()));
+ pRoot->SetText("To view this shared photo, go to:");
href.Format("https://login.skype.com/login/sso?go=webclient.xmm&docid=%s", fup->uid.get());
}
- auto *pTitle = doc.NewElement("Title"); pTitle->SetText(tszFile); pRoot->InsertEndChild(pTitle);
- auto *pDescr = doc.NewElement("Description"); pDescr->SetText(fup->tszDesc.get()); pRoot->InsertEndChild(pDescr);
-
auto *xmlA = doc.NewElement("a"); xmlA->SetText(href);
xmlA->SetAttribute("href", href);
pRoot->InsertEndChild(xmlA);