Fix handling deleted feed items where modified and published dates do not match
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 26 Aug 2019 15:50:20 +0000 (17:50 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 26 Aug 2019 15:50:20 +0000 (17:50 +0200)
src/plugins/rssyl/rssyl_deleted.c

index 5d1bbfc..dd344d5 100644 (file)
@@ -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