talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 7684d8134420c006cf1de56373009fce9cb857b5
parent 814f1179a1e5c8f3effd3f4bbfc1c36c16f6a894
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Mon, 26 Aug 2019 17:50:20 +0200

Fix handling deleted feed items where modified and published dates do not match

Diffstat:
Msrc/plugins/rssyl/rssyl_deleted.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/plugins/rssyl/rssyl_deleted.c b/src/plugins/rssyl/rssyl_deleted.c @@ -267,7 +267,8 @@ static gint _rssyl_deleted_check_func(gconstpointer a, gconstpointer b) /* ...and time of publishing */ if (ditem->date_published == -1 || - ditem->date_published == feed_item_get_date_published(fitem)) + ditem->date_published == feed_item_get_date_published(fitem) || + ditem->date_published == feed_item_get_date_modified(fitem)) pubdate_match = TRUE; /* if all three match, it's the same item */ @@ -332,7 +333,8 @@ static void _rssyl_deleted_expire_func_f(gpointer data, gpointer user_data) /* time of publishing, if set... */ if (ctx->ditem->date_published == -1 || - ctx->ditem->date_published == feed_item_get_date_published(fitem)) + ctx->ditem->date_published == feed_item_get_date_published(fitem) || + ctx->ditem->date_published == feed_item_get_date_modified(fitem)) pubdate_match = TRUE; /* if it's our item, set to NOT delete, since it's obviously