projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
60fc56f
)
Rendering tests
author
Art Cancro
<ajc@citadel.org>
Tue, 12 Oct 2010 20:13:59 +0000
(16:13 -0400)
committer
Art Cancro
<ajc@citadel.org>
Tue, 12 Oct 2010 20:13:59 +0000
(16:13 -0400)
webcit/blogview_renderer.c
patch
|
blob
|
history
diff --git
a/webcit/blogview_renderer.c
b/webcit/blogview_renderer.c
index 42cf1abb0751588853664719730673622b26d59c..d4f1ee4a913c921cfab0a55792c319e67cadf177 100644
(file)
--- a/
webcit/blogview_renderer.c
+++ b/
webcit/blogview_renderer.c
@@
-128,14
+128,18
@@
void blogview_learn_thread_references(struct blogpost *bp)
while (StrBuf_ServGetln(Buf), strcmp(ChrPtr(Buf), "000")) {
if (!strncasecmp(ChrPtr(Buf), "msgn=", 5)) {
StrBufCutLeft(Buf, 5);
while (StrBuf_ServGetln(Buf), strcmp(ChrPtr(Buf), "000")) {
if (!strncasecmp(ChrPtr(Buf), "msgn=", 5)) {
StrBufCutLeft(Buf, 5);
+ wc_printf("id %s, ", ChrPtr(Buf));
bp->id = HashLittle(ChrPtr(Buf), StrLength(Buf));
}
else if (!strncasecmp(ChrPtr(Buf), "wefw=", 5)) {
StrBufCutLeft(Buf, 5); /* trim the field name */
bp->id = HashLittle(ChrPtr(Buf), StrLength(Buf));
}
else if (!strncasecmp(ChrPtr(Buf), "wefw=", 5)) {
StrBufCutLeft(Buf, 5); /* trim the field name */
+ wc_printf("refs %s, ", ChrPtr(Buf));
StrBufCutAt(Buf, 0, "|"); /* trim all but the first thread ref */
StrBufCutAt(Buf, 0, "|"); /* trim all but the first thread ref */
+ wc_printf("topref %s, ", ChrPtr(Buf));
bp->refs = HashLittle(ChrPtr(Buf), StrLength(Buf));
}
}
bp->refs = HashLittle(ChrPtr(Buf), StrLength(Buf));
}
}
+ wc_printf("<br>\n");
}
FreeStrBuf(&Buf);
}
}
FreeStrBuf(&Buf);
}
@@
-173,6
+177,7
@@
int blogview_render(SharedMessageStatus *Stat, void **ViewSpecific, long oper)
* * etc
*/
* * etc
*/
+ wc_printf("<hr>\n");
for (i=0; (i<BLOG->num_msgs); ++i) {
if (BLOG->msgs[i].msgnum > 0L) {
for (i=0; (i<BLOG->num_msgs); ++i) {
if (BLOG->msgs[i].msgnum > 0L) {