]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/room_functions.c
The "c_smtpclient_use_starttls" configuration option has been replaced
[citadel.git] / webcit-ng / room_functions.c
index 3d82b63146c02696d042ffbb8a6dd88449c657ab..a2dfc7b9097f86d7bdec619c396ba075317d7c94 100644 (file)
@@ -120,8 +120,6 @@ void json_msglist(struct http_transaction *h, struct ctdlsession *c, char *which
        h->response_body_length = StrLength(sj);
        h->response_body = SmashStrBuf(&sj);
        return;
-
-
 }
 
 
@@ -191,10 +189,9 @@ void object_in_room(struct http_transaction *h, struct ctdlsession *c)
        {
                extract_token(buf, h->uri, 5, '/', sizeof buf);
                if (!IsEmptyStr(buf)) {
-                       if (!strcasecmp(buf, "html"))
+                       if (!strcasecmp(buf, "json"))
                        {
-                               // FIXME render as html
-                               html_render_one_message(h, c, msgnum);
+                               json_render_one_message(h, c, msgnum);
                        }
                        else
                        {