commit c1f524d2b771cce19f46a7ccdbdacfd1090e8ef5
parent 9729e11e3ab114808b47428f5291a8081781feac
Author: uriel@engel.se.cat-v.org <unknown>
Date: Mon, 26 Jan 2009 06:12:45 +0100
Be smarter about when to enable comments, and make it configurable.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/apps/bridge/app.rc b/apps/bridge/app.rc
@@ -1,5 +1,6 @@
+comment_file_types=(md html)
fn bridge_init {
- if(! ~ $#enable_comments 0 && test -f $local_path.md) {
+ if(! ~ $#enable_comments 0 && ! ~ `{ls $local_path.$comment_file_types >[2]/dev/null|wc -l} 0) {
ll_add handlers_body_foot template apps/bridge/foot.tpl
if(get_post_args comment_text) {
d=`{date -n} # FIXME Obvious race