[main.c] Send all new entries in a feed instead of repeating the last entry.

This is such a silly error. lmao.
This commit is contained in:
2025-01-31 00:32:35 -05:00
parent ae53af5fe2
commit ef9c5caf4e

2
main.c
View File

@ -163,7 +163,7 @@ static void *thread_retrieve_feeds(void *arg) {
// Send new entry in the feed // Send new entry in the feed
char msg[DISCORD_MAX_MESSAGE_LEN]; 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 }; struct discord_create_message res = { .content = msg };
discord_create_message(client, feed_buffer->info.channel_id, &res, NULL); discord_create_message(client, feed_buffer->info.channel_id, &res, NULL);
item = item->next; item = item->next;