Code Duplication == Evil

If you’ve been having problems trying to post comments lately, I think I’ve fixed the problem. fluffy pointed out to me that I forgot to modify the comment form that appears on the entry archive pages (i.e., the non-popup ones) to work with my crude spambot detector. I apologize for the inconvenience.

It would be nice of MovableType’s default templates made the comment form a template module, instead of essentially copying-and-pasting code across four separate templates (comment list, comment preview, comment error, and archive). A cursory glance shows that the four forms have subtle differences in them; for example, comment preview and comment error have an extra static field. If I were more industrious, I’d take care of that so I don’t keep screwing things up next time I feel like tweaking the form.


Comments are closed.