commit 859de58
grunfink
·
2025-05-28 05:44:34 +0000 UTC
parent 5bc4511
Renamed timeline_to_rss() to rss_from_timeline().
M
html.c
+2,
-2
1@@ -4123,7 +4123,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2 xs_dict_get(srv_config, "host"));
3 xs *rss_link = xs_fmt("%s.rss", snac.actor);
4
5- *body = timeline_to_rss(&snac, elems, rss_title, rss_link, bio);
6+ *body = rss_from_timeline(&snac, elems, rss_title, rss_link, bio);
7 *b_size = strlen(*body);
8 *ctype = "application/rss+xml; charset=utf-8";
9 status = HTTP_STATUS_OK;
10@@ -5022,7 +5022,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
11 }
12
13
14-xs_str *timeline_to_rss(snac *user, const xs_list *timeline,
15+xs_str *rss_from_timeline(snac *user, const xs_list *timeline,
16 const char *title, const char *link, const char *desc)
17 /* converts a timeline to rss */
18 {
M
httpd.c
+1,
-1
1@@ -244,7 +244,7 @@ int server_get_handler(xs_dict *req, const char *q_path,
2 if (!xs_is_null(accept) && strcmp(accept, "application/rss+xml") == 0) {
3 xs *link = xs_fmt("%s/?t=%s", srv_baseurl, t);
4
5- *body = timeline_to_rss(NULL, tl, link, link, link);
6+ *body = rss_from_timeline(NULL, tl, link, link, link);
7 *ctype = "application/rss+xml; charset=utf-8";
8 }
9 else {
M
snac.h
+1,
-1
1@@ -395,7 +395,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
2 int html_post_handler(const xs_dict *req, const char *q_path,
3 char *payload, int p_size,
4 char **body, int *b_size, char **ctype);
5-xs_str *timeline_to_rss(snac *user, const xs_list *timeline,
6+xs_str *rss_from_timeline(snac *user, const xs_list *timeline,
7 const char *title, const char *link, const char *desc);
8
9 int write_default_css(void);