Explorar o código

Fixed bug in export_posts().

grunfink hai 1 ano
pai
achega
8fdfb5b70d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      utils.c

+ 3 - 0
utils.c

@@ -766,6 +766,9 @@ void export_posts(snac *user)
         if (!xs_is_string(atto) || strcmp(atto, user->actor))
             continue;
 
+        if (cnt)
+            fprintf(f, ",");
+
         xs *c_msg = msg_create(user, obj);
         xs_json_dump(c_msg, 0, f);
         cnt++;