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 4c54818..4321a89 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) {