[main.c] Add some text for the last published data of empty feeds

This commit is contained in:
2025-02-08 16:37:17 -05:00
parent 004bab1de6
commit 8ac9faec2c

4
main.c
View File

@ -258,8 +258,8 @@ static void bot_command_add(struct discord *client, const struct discord_interac
} }
feed.title = mrss_feed->title; feed.title = mrss_feed->title;
// if there are no entries, set the last pubDate to zero. // if there are no entries, we can't just give it the invalid pointer
feed.last_pubDate = mrss_feed->item ? mrss_feed->item->pubDate : 0; feed.last_pubDate = mrss_feed->item ? mrss_feed->item->pubDate : "Never";
zblock_feed_info_err insert_res = zblock_feed_info_insert(database_conn, &feed); zblock_feed_info_err insert_res = zblock_feed_info_insert(database_conn, &feed);
if (insert_res) { if (insert_res) {