summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/FacebookRM/src/process.cpp10
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");