X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.c;h=4dbde654f9f8f37ec0ff4462cbe7e059c559f45b;hp=78884c1e37ba807391f6e6abc0e7ae8d376a4cd8;hb=b3abedbd3dbfa1d6362c028241142d2f7a850ddf;hpb=a7e89c999775c195f8b7759f4c283fcedb041a9e diff --git a/src/ttrss.c b/src/ttrss.c index 78884c1..4dbde65 100644 --- a/src/ttrss.c +++ b/src/ttrss.c @@ -173,6 +173,9 @@ struct headline **ttrss_get_headlines(int feed_id) j = json_object_object_get(jheadline, "content"); h->content = strdup(json_object_get_string(j)); + j = json_object_object_get(jheadline, "unread"); + h->unread = json_object_get_boolean(j); + headlines[i] = h; } headlines[n] = NULL;