diff options
author | ElzorFox <elzorfox@ya.ru> | 2023-08-29 15:55:38 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2023-08-29 15:55:38 +0500 |
commit | fc4eb06dc6a8f9f5a58b65ee76f74cad8880c101 (patch) | |
tree | 7c1a2bae720a128da61e39f0ad389f2fa3443c75 /protocols/VKontakte/src | |
parent | 3384febccab1e5a92b743d503d012e649d4740cc (diff) |
VKontakte: fix visit profile for group users
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index b58a7c8a91..7fb16b653e 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -1116,13 +1116,16 @@ INT_PTR __cdecl CVkProto::SvcVisitProfile(WPARAM hContact, LPARAM) }
VKUserID_t iUserId = ReadVKUserID(hContact);
+
ptrW wszDomain(db_get_wsa(hContact, m_szModuleName, "domain"));
CMStringW wszUrl("https://vk.com/");
if (wszDomain)
wszUrl.Append(wszDomain);
- else
- wszUrl.AppendFormat(L"id%i", iUserId);
+ else {
+ bool b_isGroupUser = IsGroupUser(hContact);
+ wszUrl.AppendFormat(b_isGroupUser ? L"club%i" : L"id%i", b_isGroupUser ? -1* iUserId : iUserId);
+ }
Utils_OpenUrlW(wszUrl);
return 0;
|