FIX: Allow embed updates of just the title

This commit is contained in:
Robin Ward 2020-04-20 14:31:24 -04:00
parent 56a23c68f1
commit 98729c8e6e
1 changed files with 1 additions and 1 deletions

View File

@ -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?