diff options
| author | 2023-04-12 10:41:15 +0200 | |
|---|---|---|
| committer | 2023-04-12 10:41:15 +0200 | |
| commit | 885031bed9e54876fb262921b11df23aa00cedb6 (patch) | |
| tree | a1541acecaa547b5a637600d76e8a0df1fde6225 /snac.h | |
| parent | Use the ctime instead of the published date in mastoapi_id(). (diff) | |
| download | snac2-885031bed9e54876fb262921b11df23aa00cedb6.tar.gz snac2-885031bed9e54876fb262921b11df23aa00cedb6.tar.xz snac2-885031bed9e54876fb262921b11df23aa00cedb6.zip | |
Don't generate invalid JSON if an attachment has no description.
Diffstat (limited to 'snac.h')
| -rw-r--r-- | snac.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -56,7 +56,7 @@ void srv_archive(const char *direction, const char *url, xs_dict *req, | |||
| 56 | int status, xs_dict *headers, | 56 | int status, xs_dict *headers, |
| 57 | const char *body, int b_size); | 57 | const char *body, int b_size); |
| 58 | void srv_archive_error(const char *prefix, const xs_str *err, | 58 | void srv_archive_error(const char *prefix, const xs_str *err, |
| 59 | const xs_dict *req, const xs_dict *data); | 59 | const xs_dict *req, const xs_val *data); |
| 60 | 60 | ||
| 61 | double mtime_nl(const char *fn, int *n_link); | 61 | double mtime_nl(const char *fn, int *n_link); |
| 62 | #define mtime(fn) mtime_nl(fn, NULL) | 62 | #define mtime(fn) mtime_nl(fn, NULL) |