diff options
| author | 2025-06-19 19:31:42 +0200 | |
|---|---|---|
| committer | 2025-06-19 19:31:42 +0200 | |
| commit | 8fdfb5b70d638b0f3c426c8a3ea7d2c2c0937a05 (patch) | |
| tree | f52fe315ed0d408195bd5cd574230ded28135945 | |
| parent | New command-line option export_posts. (diff) | |
| download | penes-snac2-8fdfb5b70d638b0f3c426c8a3ea7d2c2c0937a05.tar.gz penes-snac2-8fdfb5b70d638b0f3c426c8a3ea7d2c2c0937a05.tar.xz penes-snac2-8fdfb5b70d638b0f3c426c8a3ea7d2c2c0937a05.zip | |
Fixed bug in export_posts().
| -rw-r--r-- | utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -766,6 +766,9 @@ void export_posts(snac *user) | |||
| 766 | if (!xs_is_string(atto) || strcmp(atto, user->actor)) | 766 | if (!xs_is_string(atto) || strcmp(atto, user->actor)) |
| 767 | continue; | 767 | continue; |
| 768 | 768 | ||
| 769 | if (cnt) | ||
| 770 | fprintf(f, ","); | ||
| 771 | |||
| 769 | xs *c_msg = msg_create(user, obj); | 772 | xs *c_msg = msg_create(user, obj); |
| 770 | xs_json_dump(c_msg, 0, f); | 773 | xs_json_dump(c_msg, 0, f); |
| 771 | cnt++; | 774 | cnt++; |