summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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, "<[^>]+>", " ");