#include "groupdav.h"
-/*
- * Array type for a blog post. The first message is the post; the rest are comments
- */
-struct blogpost {
- int top_level_id;
- long *msgs; /* Array of msgnums for messages we are displaying */
- int num_msgs; /* Number of msgnums stored in 'msgs' */
- int alloc_msgs; /* Currently allocated size of array */
-};
-
-
/*
* Generate a permalink for a post
* (Call with NULL arguments to make this function wcprintf() the permalink
if (bp->alloc_msgs > 0) {
free(bp->msgs);
}
- free(bp);
-}
+ /* offer the comment box */
+ if (p == bp->top_level_id) {
+ do_template("blog_comment_box");
+ }
-/*
- * Data which gets returned from a call to blogview_learn_thread_references()
- */
-struct bltr {
- int id;
- int refs;
-};
+ free(bp);
+}
/*
/*
- * Given a 'struct blogpost' containing a msgnum, populate the id
- * and refs fields by fetching them from the Citadel server
+ * Given a msgnum, populate the id and refs fields of
+ * a "struct bltr" by fetching them from the Citadel server
*/
struct bltr blogview_learn_thread_references(long msgnum)
{