From ef9c5caf4ec051819e567a842da12c7e8489792c Mon Sep 17 00:00:00 2001 From: Will Brown Date: Fri, 31 Jan 2025 00:32:35 -0500 Subject: [PATCH] [main.c] Send all new entries in a feed instead of repeating the last entry. This is such a silly error. lmao. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index b99b246..d78480c 100644 --- a/main.c +++ b/main.c @@ -163,7 +163,7 @@ static void *thread_retrieve_feeds(void *arg) { // Send new entry in the feed char msg[DISCORD_MAX_MESSAGE_LEN]; - snprintf(msg, sizeof(msg), "### %s\n[%s](%s)", mrss_feed->title, mrss_feed->item->title, mrss_feed->item->link); + snprintf(msg, sizeof(msg), "### %s\n[%s](%s)", mrss_feed->title, item->title, item->link); struct discord_create_message res = { .content = msg }; discord_create_message(client, feed_buffer->info.channel_id, &res, NULL); item = item->next;