Skip to content

Commit

Permalink
still_commentable? checks against published_at rather than created_at…
Browse files Browse the repository at this point in the history
…. closes #40. Thanks.
  • Loading branch information
will-r committed Jul 1, 2011
1 parent e529980 commit 8c6d07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/forum_page.rb
Expand Up @@ -19,7 +19,7 @@ def still_commentable?
return false unless Radiant::Config['forum.allow_page_comments?'] && commentable?
return false if comments_closed?
return true unless commentable_period && commentable_period > 0
return Time.now - self.created_at < commentable_period
return Time.now - self.published_at < commentable_period
end

def locked?
Expand Down

0 comments on commit 8c6d07d

Please sign in to comment.