diff --git a/app/models/post_archive.rb b/app/models/post_archive.rb index 30ad1683b..559077fc6 100644 --- a/app/models/post_archive.rb +++ b/app/models/post_archive.rb @@ -105,6 +105,10 @@ class PostArchive < ActiveRecord::Base end end + def visible? + post && post.visible? + end + def diff(version = nil) if post.nil? latest_tags = tag_array diff --git a/app/views/post_versions/_listing.html.erb b/app/views/post_versions/_listing.html.erb index 39ab5026b..e3ed085cb 100644 --- a/app/views/post_versions/_listing.html.erb +++ b/app/views/post_versions/_listing.html.erb @@ -36,7 +36,7 @@