Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
fixed issue rubysherpas#245.
Browse files Browse the repository at this point in the history
  • Loading branch information
nebiros committed Jun 14, 2012
1 parent b9a9731 commit f6bd5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/forem/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def email_topic_subscribers
end

def set_topic_last_post_at
self.topic.update_attribute(:last_post_at, self.created_at)
self.topic.update_attribute(:last_post_at, self.created_at) unless self.topic.read_attribute(:last_post_at).blank?
end

def skip_pending_review_if_user_approved
Expand Down

0 comments on commit f6bd5cb

Please sign in to comment.