diff options
| author | 2025-09-09 23:03:34 +0200 | |
|---|---|---|
| committer | 2025-09-09 23:03:34 +0200 | |
| commit | 74e021cbb7c204c8141825a9e82065c45dba26e1 (patch) | |
| tree | 6f0097dda9d85e7cd7241f828e795c13dc4b748a /rss.c | |
| parent | Return a 404 instead of an empty page if requesting a non-public post. (diff) | |
| download | snac2-74e021cbb7c204c8141825a9e82065c45dba26e1.tar.gz snac2-74e021cbb7c204c8141825a9e82065c45dba26e1.tar.xz snac2-74e021cbb7c204c8141825a9e82065c45dba26e1.zip | |
Fixed RSS.
Diffstat (limited to 'rss.c')
| -rw-r--r-- | rss.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -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, "<[^>]+>", " "); |