Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
Fixed newsblur API to handle dummy articles.
Browse files Browse the repository at this point in the history
  • Loading branch information
aniranc committed Sep 15, 2015
1 parent b850d0a commit 1243ce8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -8,6 +8,5 @@ test/test
test/test-rss
test/testlog.txt
xlicense.h
*.gc*
html/*
*.info
4 changes: 4 additions & 0 deletions src/newsblur_api.cpp
Expand Up @@ -121,6 +121,10 @@ bool newsblur_api::mark_all_read(const std::string& feed_url) {
}

bool newsblur_api::mark_article_read(const std::string& guid, bool read) {
// handle dummy articles
if (guid.empty()) {
return false;
}
std::string endpoint;
int separator = guid.find(ID_SEPARATOR);
std::string feed_id = guid.substr(0, separator);
Expand Down

0 comments on commit 1243ce8

Please sign in to comment.