From 144d4abae7e3bbdd5c7e6afb9098f84ab443f475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 17 Jul 2016 19:42:55 +0000 Subject: Facebook: Greatly improve format of wall post's text git-svn-id: http://svn.miranda-ng.org/main/trunk@17105 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/json.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/FacebookRM/src/json.cpp') diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index 4786213919..4cfa53c3fe 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -238,7 +238,7 @@ void parseAttachments(FacebookProto *proto, std::string *message_text, const JSO // shorten long descriptions if (description.length() > MAX_LINK_DESCRIPTION_LEN) - description = description.substr(0, MAX_LINK_DESCRIPTION_LEN) + "..."; + description = description.substr(0, MAX_LINK_DESCRIPTION_LEN) + TEXT_ELLIPSIS; if (link.find("l." FACEBOOK_SERVER_DOMAIN) != std::string::npos) { // de-facebook this link @@ -447,6 +447,8 @@ int facebook_json_parser::parse_messages(std::string *pData, std::vectordebugLogA("json::parse_messages - Unknown class '%s'", cls.c_str()); } } -- cgit v1.2.3