diff options
Diffstat (limited to 'actiontext/app/models/action_text')
-rw-r--r-- | actiontext/app/models/action_text/rich_text.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actiontext/app/models/action_text/rich_text.rb b/actiontext/app/models/action_text/rich_text.rb index 19fa3e030e..1a3ffdfa27 100644 --- a/actiontext/app/models/action_text/rich_text.rb +++ b/actiontext/app/models/action_text/rich_text.rb @@ -15,7 +15,7 @@ module ActionText has_many_attached :embeds before_save do - self.embeds = body.attachables.grep(ActiveStorage::Blob) if body.present? + self.embeds = body.attachables.grep(ActiveStorage::Blob).uniq if body.present? end def to_plain_text |