summaryrefslogtreecommitdiff
path: root/rss.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-28 09:39:07 +0200
committerGravatar grunfink2025-05-28 09:39:07 +0200
commit77b9cbe6c3064c1656fa5375f7d2d498e34a34e6 (patch)
tree9180cce51e3d227531c09742469c2950463cca68 /rss.c
parentMerge branch 'master' of comam.es:git/snac2 (diff)
downloadsnac2-77b9cbe6c3064c1656fa5375f7d2d498e34a34e6.tar.gz
snac2-77b9cbe6c3064c1656fa5375f7d2d498e34a34e6.tar.xz
snac2-77b9cbe6c3064c1656fa5375f7d2d498e34a34e6.zip
Added more checks.
Diffstat (limited to 'rss.c')
-rw-r--r--rss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rss.c b/rss.c
index ce3e184..8798cac 100644
--- a/rss.c
+++ b/rss.c
@@ -149,6 +149,10 @@ void rss_to_timeline(snac *user, const char *url)
149 if (strcmp(l, url) == 0) 149 if (strcmp(l, url) == 0)
150 continue; 150 continue;
151 151
152 /* skip crap */
153 if (!xs_startswith(l, "https:/") && !xs_startswith(l, "http:/"))
154 return;
155
152 snac_debug(user, 1, xs_fmt("RSS link: %s", l)); 156 snac_debug(user, 1, xs_fmt("RSS link: %s", l));
153 157
154 if (timeline_here(user, l)) { 158 if (timeline_here(user, l)) {