summaryrefslogtreecommitdiff
path: root/rss.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-09-09 23:03:34 +0200
committerGravatar grunfink2025-09-09 23:03:34 +0200
commit74e021cbb7c204c8141825a9e82065c45dba26e1 (patch)
tree6f0097dda9d85e7cd7241f828e795c13dc4b748a /rss.c
parentReturn a 404 instead of an empty page if requesting a non-public post. (diff)
downloadsnac2-74e021cbb7c204c8141825a9e82065c45dba26e1.tar.gz
snac2-74e021cbb7c204c8141825a9e82065c45dba26e1.tar.xz
snac2-74e021cbb7c204c8141825a9e82065c45dba26e1.zip
Fixed RSS.
Diffstat (limited to 'rss.c')
-rw-r--r--rss.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rss.c b/rss.c
index f72dac4..bb7b043 100644
--- a/rss.c
+++ b/rss.c
@@ -64,6 +64,9 @@ xs_str *rss_from_timeline(snac *user, const xs_list *timeline,
64 if (!id || !content || !published) 64 if (!id || !content || !published)
65 continue; 65 continue;
66 66
67 if (!is_msg_public(msg))
68 continue;
69
67 /* create a title with the first line of the content */ 70 /* create a title with the first line of the content */
68 xs *title = xs_replace(content, "<br>", "\n"); 71 xs *title = xs_replace(content, "<br>", "\n");
69 title = xs_regex_replace_i(title, "<[^>]+>", " "); 72 title = xs_regex_replace_i(title, "<[^>]+>", " ");