summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-12-04 18:39:52 +0100
committerRobert Pösel <robyer@seznam.cz>2016-12-04 18:39:52 +0100
commitb3aa5ef57f1d8d86c59cf94b43cf030fb10c8640 (patch)
tree5ea36d6e32025464167fa66d452e52cae4fe6a28 /protocols/FacebookRM
parentbf2e13e1542770ec914a998b3d10416f56ca62f0 (diff)
Facebook: Fix typo
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/json.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index dd4e727f3c..df15c2cf86 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -317,7 +317,7 @@ void parseAttachments(FacebookProto *proto, std::string *message_text, const JSO
if (description.length() > MAX_LINK_DESCRIPTION_LEN)
description = description.substr(0, MAX_LINK_DESCRIPTION_LEN) + TEXT_ELLIPSIS;
- if (link.find("//www." FACEBOOK_SERVER_DOMAIN) != std::string::npos || link.find("//l." FACEBOOK_SERVER_DOMAIN) != std::string::npos) {
+ if (link.find("//www." FACEBOOK_SERVER_DOMAIN "/l.php") != std::string::npos || link.find("//l." FACEBOOK_SERVER_DOMAIN) != std::string::npos) {
// de-facebook this link
link = utils::url::decode(utils::text::source_get_value2(&link, "l.php?u=", "&", true));
}