commit 0594197
grunfink
·
2025-05-28 07:16:23 +0000 UTC
parent 30b47a7
Renamed server knob to 'rss_hashtag_poll_hours'.
2 files changed,
+3,
-3
M
httpd.c
+1,
-1
1@@ -3050,7 +3050,7 @@ void process_queue_item(xs_dict *q_item)
2 }
3 }
4 else
5- if (strcmp(type, "rss_poll") == 0) {
6+ if (strcmp(type, "rss_hashtag_poll") == 0) {
7 rss_poll_hashtags();
8 }
9 else
M
httpd.c
+2,
-2
1@@ -757,7 +757,7 @@ static void *background_thread(void *arg)
2 /* time to poll the RSS? */
3 if (t > rss_time) {
4 /* next RSS poll time */
5- int hours = xs_number_get(xs_dict_get_def(srv_config, "rss_poll_hours", "4"));
6+ int hours = xs_number_get(xs_dict_get_def(srv_config, "rss_hashtag_poll_hours", "4"));
7
8 /* don't hammer servers too much */
9 if (hours < 1)
10@@ -766,7 +766,7 @@ static void *background_thread(void *arg)
11 rss_time = t + 60 * 60 * hours;
12
13 xs *q_item = xs_dict_new();
14- q_item = xs_dict_append(q_item, "type", "rss_poll");
15+ q_item = xs_dict_append(q_item, "type", "rss_hashtag_poll");
16 job_post(q_item, 0);
17 }
18