summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
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=", "&");
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);
}