diff options
| author | 2025-05-28 09:16:23 +0200 | |
|---|---|---|
| committer | 2025-05-28 09:16:23 +0200 | |
| commit | 0594197af7a4a11795150a85fafa7fa5bc6fc4f5 (patch) | |
| tree | 3fe46c6d4f9ccf975da0cc7b6f7422caddd6c1b9 | |
| parent | Updated documentation. (diff) | |
| download | snac2-0594197af7a4a11795150a85fafa7fa5bc6fc4f5.tar.gz snac2-0594197af7a4a11795150a85fafa7fa5bc6fc4f5.tar.xz snac2-0594197af7a4a11795150a85fafa7fa5bc6fc4f5.zip | |
Renamed server knob to 'rss_hashtag_poll_hours'.
| -rw-r--r-- | activitypub.c | 2 | ||||
| -rw-r--r-- | httpd.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c index 2cffeac..8877a27 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -3050,7 +3050,7 @@ void process_queue_item(xs_dict *q_item) | |||
| 3050 | } | 3050 | } |
| 3051 | } | 3051 | } |
| 3052 | else | 3052 | else |
| 3053 | if (strcmp(type, "rss_poll") == 0) { | 3053 | if (strcmp(type, "rss_hashtag_poll") == 0) { |
| 3054 | rss_poll_hashtags(); | 3054 | rss_poll_hashtags(); |
| 3055 | } | 3055 | } |
| 3056 | else | 3056 | else |
| @@ -757,7 +757,7 @@ static void *background_thread(void *arg) | |||
| 757 | /* time to poll the RSS? */ | 757 | /* time to poll the RSS? */ |
| 758 | if (t > rss_time) { | 758 | if (t > rss_time) { |
| 759 | /* next RSS poll time */ | 759 | /* next RSS poll time */ |
| 760 | int hours = xs_number_get(xs_dict_get_def(srv_config, "rss_poll_hours", "4")); | 760 | int hours = xs_number_get(xs_dict_get_def(srv_config, "rss_hashtag_poll_hours", "4")); |
| 761 | 761 | ||
| 762 | /* don't hammer servers too much */ | 762 | /* don't hammer servers too much */ |
| 763 | if (hours < 1) | 763 | if (hours < 1) |
| @@ -766,7 +766,7 @@ static void *background_thread(void *arg) | |||
| 766 | rss_time = t + 60 * 60 * hours; | 766 | rss_time = t + 60 * 60 * hours; |
| 767 | 767 | ||
| 768 | xs *q_item = xs_dict_new(); | 768 | xs *q_item = xs_dict_new(); |
| 769 | q_item = xs_dict_append(q_item, "type", "rss_poll"); | 769 | q_item = xs_dict_append(q_item, "type", "rss_hashtag_poll"); |
| 770 | job_post(q_item, 0); | 770 | job_post(q_item, 0); |
| 771 | } | 771 | } |
| 772 | 772 | ||