]> code.citadel.org Git - citadel.git/blobdiff - webcit-ng/forum_view.c
Add subject to json output
[citadel.git] / webcit-ng / forum_view.c
index 4c54818584801c790a9bbed0dfd4f5d14c1fa87f..4321a89fc4331b134a4b79869777ccc4cd6c0b22 100644 (file)
@@ -79,6 +79,9 @@ void json_render_one_message(struct http_transaction *h, struct ctdlsession *c,
                else if (!strncasecmp(buf, "locl=", 5)) {
                        message_originated_locally = 1;
                }
+               else if (!strncasecmp(buf, "subj=", 5)) {
+                       JsonObjectAppend(j, NewJsonPlainString(HKEY("subj"), &buf[5], -1));
+               }
        }
 
        if (message_originated_locally) {