diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-05-28 14:01:24 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-05-28 14:01:24 +0000 |
commit | 2bc466a8af4b4ed77f20cab4b61886124db259e5 (patch) | |
tree | 364a063c5bc47af0ade28323379d153cef74fea1 /protocols | |
parent | 4c818adaabffd85c54df9c9e4b59a8b441119641 (diff) |
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
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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, ">", "</abbr>"); 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, "</abbr>", "<a", ">", "</a>"); @@ -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"); |