From 76e588cc7b98d0dc693d53df63781b4b49401e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Thu, 16 May 2013 11:06:02 +0000 Subject: Facebook: Fixed loading newsfeeds. git-svn-id: http://svn.miranda-ng.org/main/trunk@4667 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/process.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'protocols/FacebookRM/src/process.cpp') diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 35aaa52bff..da46e3c8f0 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -699,10 +699,13 @@ void FacebookProto::ProcessFeeds(void* data) pos += 5; std::string post_header = utils::text::source_get_value(&post, 4, "
", "<\\/h5>"); - std::string post_message = utils::text::source_get_value(&post, 3, "
", "<\\/h5>"); + std::string post_message = utils::text::source_get_value(&post, 3, "
", "<\\/h5>"); std::string post_link = utils::text::source_get_value(&post, 3, "", "<\\/span>"); std::string post_attach = utils::text::source_get_value(&post, 4, "
", "", "<"); + // in title keep only name, end of events like "X shared link" put into message pos2 = post_header.find("<\\/a>") + 5; post_message = post_header.substr(pos2, post_header.length() - pos2) + post_message; @@ -727,6 +730,8 @@ void FacebookProto::ProcessFeeds(void* data) utils::text::remove_html( utils::text::edit_html(post_message)))); + //nf->text += "\n" + post_time_text; + if (!nf->title.length() || !nf->text.length()) { delete nf; -- cgit v1.2.3