From f48fb8f91809604e65fde881169c4be595d02b89 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 30 Oct 2021 16:29:06 -0400 Subject: [PATCH] Add subject to json output --- webcit-ng/forum_view.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.39.2