From: Art Cancro Date: Sat, 30 Oct 2021 20:29:06 +0000 (-0400) Subject: Add subject to json output X-Git-Tag: v940~13 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=f48fb8f91809604e65fde881169c4be595d02b89;p=citadel.git Add subject to json output --- diff --git a/webcit-ng/forum_view.c b/webcit-ng/forum_view.c index 4c5481858..4321a89fc 100644 --- a/webcit-ng/forum_view.c +++ b/webcit-ng/forum_view.c @@ -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) {