Răsfoiți Sursa

Renamed server knob to 'rss_hashtag_poll_hours'.

grunfink 1 an în urmă
părinte
comite
0594197af7
2 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 1 1
      activitypub.c
  2. 2 2
      httpd.c

+ 1 - 1
activitypub.c

@@ -3050,7 +3050,7 @@ void process_queue_item(xs_dict *q_item)
         }
     }
     else
-    if (strcmp(type, "rss_poll") == 0) {
+    if (strcmp(type, "rss_hashtag_poll") == 0) {
         rss_poll_hashtags();
     }
     else

+ 2 - 2
httpd.c

@@ -757,7 +757,7 @@ static void *background_thread(void *arg)
         /* time to poll the RSS? */
         if (t > rss_time) {
             /* next RSS poll time */
-            int hours = xs_number_get(xs_dict_get_def(srv_config, "rss_poll_hours", "4"));
+            int hours = xs_number_get(xs_dict_get_def(srv_config, "rss_hashtag_poll_hours", "4"));
 
             /* don't hammer servers too much */
             if (hours < 1)
@@ -766,7 +766,7 @@ static void *background_thread(void *arg)
             rss_time = t + 60 * 60 * hours;
 
             xs *q_item = xs_dict_new();
-            q_item = xs_dict_append(q_item, "type", "rss_poll");
+            q_item = xs_dict_append(q_item, "type", "rss_hashtag_poll");
             job_post(q_item, 0);
         }