diff options
| author | 2025-05-29 22:52:39 +0200 | |
|---|---|---|
| committer | 2025-05-29 22:52:39 +0200 | |
| commit | 714ff17e3ccc55a9e70e03ee7b91cd1dd75e134b (patch) | |
| tree | bbd7989c9a543bc76645bcc9f94c813796d48c23 | |
| parent | New command-line option 'poll_hashtag_rss'. (diff) | |
| download | penes-snac2-714ff17e3ccc55a9e70e03ee7b91cd1dd75e134b.tar.gz penes-snac2-714ff17e3ccc55a9e70e03ee7b91cd1dd75e134b.tar.xz penes-snac2-714ff17e3ccc55a9e70e03ee7b91cd1dd75e134b.zip | |
Also store the url in the RSS metadata.
| -rw-r--r-- | rss.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -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); |