From 2bc466a8af4b4ed77f20cab4b61886124db259e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 28 May 2014 14:01:24 +0000 Subject: Facebook: Fixed notifying newsfeeds that has been already notified git-svn-id: http://svn.miranda-ng.org/main/trunk@9334 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/process.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols') diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 11991db5b4..03c99f246f 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -784,10 +784,10 @@ void FacebookProto::ProcessFeeds(void* data) std::string time_text = utils::text::source_get_value(&post_time, 2, ">", ""); DWORD ttime = utils::conversion::to_timestamp(time); - if (ttime > facy.last_feeds_update_) - new_time = ttime; - else - continue; + if (ttime > new_time) + new_time = ttime; // remember newest time from all these posts + else if (ttime < facy.last_feeds_update_) + continue; // ignore posts older than newest post of previous check std::string post_place = utils::text::source_get_value(&post, 4, "", "", ""); @@ -873,8 +873,8 @@ void FacebookProto::ProcessFeeds(void* data) } news.clear(); + // Set time of last update to time of newest post this->facy.last_feeds_update_ = new_time; - //this->facy.last_feeds_update_ = ::time(NULL); debugLogA("***** Feeds processed"); -- cgit v1.2.3