Removed the unused second argument from the do_template() macro
[citadel.git] / webcit / blogview_renderer.c
index 3d40a798ccd022db46c535933ffada33d6b81b5b..438e3d49eeac94569cce3ed390c6ed3f64de2955 100644 (file)
@@ -102,6 +102,12 @@ void blogpost_render_and_destroy(struct blogpost *bp) {
        if (bp->alloc_msgs > 0) {
                free(bp->msgs);
        }
+
+       /* offer the comment box */
+       if (p == bp->top_level_id) {
+               do_template("blog_comment_box");
+       }
+
        free(bp);
 }