summaryrefslogtreecommitdiff
path: root/rss.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-29 22:52:39 +0200
committerGravatar grunfink2025-05-29 22:52:39 +0200
commit714ff17e3ccc55a9e70e03ee7b91cd1dd75e134b (patch)
treebbd7989c9a543bc76645bcc9f94c813796d48c23 /rss.c
parentNew command-line option 'poll_hashtag_rss'. (diff)
downloadsnac2-714ff17e3ccc55a9e70e03ee7b91cd1dd75e134b.tar.gz
snac2-714ff17e3ccc55a9e70e03ee7b91cd1dd75e134b.tar.xz
snac2-714ff17e3ccc55a9e70e03ee7b91cd1dd75e134b.zip
Also store the url in the RSS metadata.
Diffstat (limited to 'rss.c')
-rw-r--r--rss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rss.c b/rss.c
index 9d582f7..8d55370 100644
--- a/rss.c
+++ b/rss.c
@@ -239,6 +239,7 @@ void rss_to_timeline(snac *user, const char *url)
239 239
240 if (xs_is_string(etag)) { 240 if (xs_is_string(etag)) {
241 rss_md = xs_dict_set(rss_md, "etag", etag); 241 rss_md = xs_dict_set(rss_md, "etag", etag);
242 rss_md = xs_dict_set(rss_md, "url", url);
242 if ((f = fopen(rss_md_fn, "w")) != NULL) { 243 if ((f = fopen(rss_md_fn, "w")) != NULL) {
243 xs_json_dump(rss_md, 4, f); 244 xs_json_dump(rss_md, 4, f);
244 fclose(f); 245 fclose(f);