From a90627039cf2f8c70902e8ca1e50553ad81b9dcd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Wed, 19 Jan 2022 17:09:19 +0100
Subject: [PATCH] blobs

---
 app/models/communication/website/home.rb | 2 +-
 app/models/communication/website/page.rb | 2 +-
 app/models/communication/website/post.rb | 2 +-
 app/models/education/program.rb          | 2 +-
 app/models/research/journal/volume.rb    | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/models/communication/website/home.rb b/app/models/communication/website/home.rb
index 5c5f2890f..b0049838e 100644
--- a/app/models/communication/website/home.rb
+++ b/app/models/communication/website/home.rb
@@ -49,7 +49,7 @@ class Communication::Website::Home < ApplicationRecord
   protected
 
   def explicit_blob_ids
-    [featured_image&.blob_id, rich_text_blob_ids]
+    super.concat [featured_image&.blob_id]
   end
 
   def inherited_blob_ids
diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb
index b6024cf98..e748382fa 100644
--- a/app/models/communication/website/page.rb
+++ b/app/models/communication/website/page.rb
@@ -119,7 +119,7 @@ class Communication::Website::Page < ApplicationRecord
   end
 
   def explicit_blob_ids
-    [featured_image&.blob_id, rich_text_blob_ids]
+    super.concat [featured_image&.blob_id]
   end
 
   def inherited_blob_ids
diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb
index 82ca505ae..8c81869ce 100644
--- a/app/models/communication/website/post.rb
+++ b/app/models/communication/website/post.rb
@@ -98,7 +98,7 @@ class Communication::Website::Post < ApplicationRecord
   end
 
   def explicit_blob_ids
-    [featured_image&.blob_id, rich_text_blob_ids]
+    super.concat [featured_image&.blob_id]
   end
 
   def inherited_blob_ids
diff --git a/app/models/education/program.rb b/app/models/education/program.rb
index e8f3edf30..c4c75482b 100644
--- a/app/models/education/program.rb
+++ b/app/models/education/program.rb
@@ -151,7 +151,7 @@ class Education::Program < ApplicationRecord
   end
 
   def explicit_blob_ids
-    [featured_image&.blob_id, rich_text_blob_ids]
+    super.concat [featured_image&.blob_id]
   end
 
   def inherited_blob_ids
diff --git a/app/models/research/journal/volume.rb b/app/models/research/journal/volume.rb
index 8ee063285..49203c21f 100644
--- a/app/models/research/journal/volume.rb
+++ b/app/models/research/journal/volume.rb
@@ -73,7 +73,7 @@ class Research::Journal::Volume < ApplicationRecord
   end
 
   def explicit_blob_ids
-    [featured_image&.blob_id, rich_text_blob_ids]
+    super.concat [featured_image&.blob_id]
   end
 
   def inherited_blob_ids
-- 
GitLab