Add subject to json output
authorArt Cancro <ajc@citadel.org>
Sat, 30 Oct 2021 20:29:06 +0000 (16:29 -0400)
committerArt Cancro <ajc@citadel.org>
Sat, 30 Oct 2021 20:29:06 +0000 (16:29 -0400)
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) {