WeBlog icon indicating copy to clipboard operation
WeBlog copied to clipboard

Update comment creation code

Open adeneys opened this issue 12 years ago • 1 comments

The comment creation process currently traverses the content tree lookig for the post item by template. A better way to do this would be to look for the first non-comment and non-folder item in the ancestors. Makes this piece of code more flexible.

adeneys avatar Jun 25 '13 06:06 adeneys

It looks like the only reason the current code looks for the blog item during comment creation is to read settings and determine the appropriate template to use for the comment item. We should extract the settings to a provider model where settings can be read from configuration or a blog item. That would allow creating comments on non-blog items.

adeneys avatar Aug 03 '13 14:08 adeneys