diff --git a/app/models/communication/website/github_file.rb b/app/models/communication/website/github_file.rb
index e596d5839eb3a343d7f9151e5f72b913a301fcce..18566cd872372e12db9e6848252c319dbb7fbf12 100644
--- a/app/models/communication/website/github_file.rb
+++ b/app/models/communication/website/github_file.rb
@@ -123,8 +123,7 @@ class Communication::Website::GithubFile < ApplicationRecord
   end
 
   def valid_for_publication?
-    case about_type
-    when 'Communication::Website::Page', 'Communication::Website::Post'
+    if about.respond_to?(:published)
       about.published?
     else
       true