projects
/
citadel
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0e938b
)
Add subject to json output
author
Art Cancro
<ajc@citadel.org>
Sat, 30 Oct 2021 20:29:06 +0000
(16:29 -0400)
committer
Art Cancro
<ajc@citadel.org>
Sat, 30 Oct 2021 20:29:06 +0000
(16:29 -0400)
webcit-ng/forum_view.c
patch
|
blob
|
history
diff --git
a/webcit-ng/forum_view.c
b/webcit-ng/forum_view.c
index
4c54818
..
4321a89
100644
(file)
--- 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) {