summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-28 07:44:34 +0200
committerGravatar grunfink2025-05-28 07:44:34 +0200
commit859de583d9b575a830bab92a6379f77c70910a93 (patch)
tree6fb11ce4c6089939c155900644f1ca0b0de29b07
parentNew function timeline_here(). (diff)
downloadpenes-snac2-859de583d9b575a830bab92a6379f77c70910a93.tar.gz
penes-snac2-859de583d9b575a830bab92a6379f77c70910a93.tar.xz
penes-snac2-859de583d9b575a830bab92a6379f77c70910a93.zip
Renamed timeline_to_rss() to rss_from_timeline().
-rw-r--r--html.c4
-rw-r--r--httpd.c2
-rw-r--r--snac.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/html.c b/html.c
index 4c30355..d3d5075 100644
--- a/html.c
+++ b/html.c
@@ -4123,7 +4123,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
4123 xs_dict_get(srv_config, "host")); 4123 xs_dict_get(srv_config, "host"));
4124 xs *rss_link = xs_fmt("%s.rss", snac.actor); 4124 xs *rss_link = xs_fmt("%s.rss", snac.actor);
4125 4125
4126 *body = timeline_to_rss(&snac, elems, rss_title, rss_link, bio); 4126 *body = rss_from_timeline(&snac, elems, rss_title, rss_link, bio);
4127 *b_size = strlen(*body); 4127 *b_size = strlen(*body);
4128 *ctype = "application/rss+xml; charset=utf-8"; 4128 *ctype = "application/rss+xml; charset=utf-8";
4129 status = HTTP_STATUS_OK; 4129 status = HTTP_STATUS_OK;
@@ -5022,7 +5022,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
5022} 5022}
5023 5023
5024 5024
5025xs_str *timeline_to_rss(snac *user, const xs_list *timeline, 5025xs_str *rss_from_timeline(snac *user, const xs_list *timeline,
5026 const char *title, const char *link, const char *desc) 5026 const char *title, const char *link, const char *desc)
5027/* converts a timeline to rss */ 5027/* converts a timeline to rss */
5028{ 5028{
diff --git a/httpd.c b/httpd.c
index 6f7d69b..41b2515 100644
--- a/httpd.c
+++ b/httpd.c
@@ -244,7 +244,7 @@ int server_get_handler(xs_dict *req, const char *q_path,
244 if (!xs_is_null(accept) && strcmp(accept, "application/rss+xml") == 0) { 244 if (!xs_is_null(accept) && strcmp(accept, "application/rss+xml") == 0) {
245 xs *link = xs_fmt("%s/?t=%s", srv_baseurl, t); 245 xs *link = xs_fmt("%s/?t=%s", srv_baseurl, t);
246 246
247 *body = timeline_to_rss(NULL, tl, link, link, link); 247 *body = rss_from_timeline(NULL, tl, link, link, link);
248 *ctype = "application/rss+xml; charset=utf-8"; 248 *ctype = "application/rss+xml; charset=utf-8";
249 } 249 }
250 else { 250 else {
diff --git a/snac.h b/snac.h
index f32a90d..9a5aca0 100644
--- a/snac.h
+++ b/snac.h
@@ -395,7 +395,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
395int html_post_handler(const xs_dict *req, const char *q_path, 395int html_post_handler(const xs_dict *req, const char *q_path,
396 char *payload, int p_size, 396 char *payload, int p_size,
397 char **body, int *b_size, char **ctype); 397 char **body, int *b_size, char **ctype);
398xs_str *timeline_to_rss(snac *user, const xs_list *timeline, 398xs_str *rss_from_timeline(snac *user, const xs_list *timeline,
399 const char *title, const char *link, const char *desc); 399 const char *title, const char *link, const char *desc);
400 400
401int write_default_css(void); 401int write_default_css(void);