summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-01-02 17:31:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-01-02 17:31:30 +0300
commitc1918e3cc32b2f77ddb18f9d55804067c78399e8 (patch)
treeaebccdaf45123436ac997569009ddfd34d6f8025
parentcf26766d814c01a99d8834693662ca590980f012 (diff)
fixes #3291 (Twitter: перестали прогружаться аватарки)
-rw-r--r--protocols/Twitter/src/connection.cpp2
-rw-r--r--protocols/Twitter/src/version.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Twitter/src/connection.cpp b/protocols/Twitter/src/connection.cpp
index 78a7e9be4f..f2622b29fa 100644
--- a/protocols/Twitter/src/connection.cpp
+++ b/protocols/Twitter/src/connection.cpp
@@ -291,7 +291,7 @@ void CTwitterProto::UpdateAvatarWorker(void *p)
if (username.IsEmpty())
return;
- CMStringA ext = data->url.Right(data->url.ReverseFind('.')); // finds the filetype of the avatar
+ CMStringA ext = data->url.Mid(data->url.ReverseFind('.')); // finds the filetype of the avatar
CMStringW filename(FORMAT, L"%s\\%S%S", GetAvatarFolder().c_str(), username.c_str(), ext.c_str()); // local filename and path
PROTO_AVATAR_INFORMATION ai = { 0 };
diff --git a/protocols/Twitter/src/version.h b/protocols/Twitter/src/version.h
index 4363379992..de7fb6516b 100644
--- a/protocols/Twitter/src/version.h
+++ b/protocols/Twitter/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 1
#define __MINOR_VERSION 3
#define __RELEASE_NUM 1
-#define __BUILD_NUM 6
+#define __BUILD_NUM 7
#include <stdver.h>