summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-04-05 09:42:27 +0000
committerRobert Pösel <robyer@seznam.cz>2014-04-05 09:42:27 +0000
commit6accc5c67e28a76a494526206058e1b7e50b09e0 (patch)
treefca7b4c111f6f385e601eadd163b3242dadb3a7f /protocols/FacebookRM
parentfed159c8771f96f2c35d2d8b1d0d5dc71957c894 (diff)
Facebook: Fix newsfeeds (remove "Translate" link and load correct user_id)
git-svn-id: http://svn.miranda-ng.org/main/trunk@8861 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/process.cpp2
-rw-r--r--protocols/FacebookRM/src/utils.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index c8a3fc7d6b..ddb7e5e28d 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -728,7 +728,7 @@ void FacebookProto::ProcessFeeds(void* data)
utils::text::special_expressions_decode(
utils::text::remove_html(post_header)));
- nf->user_id = utils::text::source_get_value(&post_header, 2, "user.php?id=", "\\\"");
+ nf->user_id = utils::text::source_get_value(&post_header, 2, "user.php?id=", "&amp;");
nf->link = utils::text::special_expressions_decode(
utils::text::source_get_value(&post_link, 2, "href=\\\"", "\\\">"));
diff --git a/protocols/FacebookRM/src/utils.cpp b/protocols/FacebookRM/src/utils.cpp
index 36d72a865f..8123bc9109 100644
--- a/protocols/FacebookRM/src/utils.cpp
+++ b/protocols/FacebookRM/src/utils.cpp
@@ -249,11 +249,11 @@ std::string utils::text::edit_html(std::string data)
new_string = "";
while (end != std::string::npos)
{
- end = data.find("translate_story_link\\\">", start);
+ end = data.find("role=\\\"button\\\">", start);
if (end != std::string::npos)
{
new_string += data.substr(start, end - start);
- start = data.find("<\\/div", end);
+ start = data.find("<\\/a", end);
} else {
new_string += data.substr(start, data.length() - start);
}