Skip to content

Commit e7d052f

Browse files
committed
update status of old topics with new posts
1 parent cbde6f8 commit e7d052f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ module ::CommunityCustomFields
9393
topic.custom_fields[:outcome] = nil
9494
topic.custom_fields[:closed_at] = nil
9595
end
96+
97+
if topic.custom_fields[:status].nil?
98+
topic.custom_fields[:status] = "new"
99+
end
96100
end
97101

98102
topic.save_custom_fields

0 commit comments

Comments
 (0)