diff --git a/lib/topic_view.rb b/lib/topic_view.rb index 625c9ef4337..8020ba72de2 100644 --- a/lib/topic_view.rb +++ b/lib/topic_view.rb @@ -195,7 +195,11 @@ class TopicView def published_time return nil if desired_post.blank? - desired_post.created_at.strftime('%FT%T%:z') + if desired_post.wiki && desired_post.post_number == 1 && desired_post.revisions.size > 0 + desired_post.revisions.last.updated_at.strftime('%FT%T%:z') + else + desired_post.created_at.strftime('%FT%T%:z') + end end def image_url