From 98729c8e6efc11233a8f5eb15ecfeb52217d5272 Mon Sep 17 00:00:00 2001
From: Robin Ward <robin.ward@gmail.com>
Date: Mon, 20 Apr 2020 14:31:24 -0400
Subject: [PATCH] FIX: Allow embed updates of just the title

---
 app/models/topic_embed.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/models/topic_embed.rb b/app/models/topic_embed.rb
index 64c39c527cf..43de234a159 100644
--- a/app/models/topic_embed.rb
+++ b/app/models/topic_embed.rb
@@ -91,7 +91,7 @@ class TopicEmbed < ActiveRecord::Base
           post.reload
         end
 
-        if content_sha1 != embed.content_sha1
+        if (content_sha1 != embed.content_sha1) || (title && title != post&.topic&.title)
           changes = { raw: absolutize_urls(url, contents) }
           changes[:title] = title if title.present?