Commit 72a26d07 by Ibrahim Awwal

Don't bump a thread just for being closed.

parent 515bacae
...@@ -57,7 +57,7 @@ class CommentThread < Content ...@@ -57,7 +57,7 @@ class CommentThread < Content
validate :tag_names_unique validate :tag_names_unique
before_create :set_last_activity_at before_create :set_last_activity_at
before_update :set_last_activity_at before_update :set_last_activity_at, :unless => closed_changed?
before_destroy :destroy_subscriptions before_destroy :destroy_subscriptions
...@@ -187,7 +187,7 @@ private ...@@ -187,7 +187,7 @@ private
end end
def set_last_activity_at def set_last_activity_at
self.last_activity_at = Time.now.utc unless last_activity_at_changed? self.last_activity_at = Time.now.utc unless last_activity_at_changed?
end end
def destroy_subscriptions def destroy_subscriptions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment