FIX: Allow embed updates of just the title
This commit is contained in:
parent
56a23c68f1
commit
98729c8e6e
|
@ -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?
|
||||
|
||||
|
|
Loading…
Reference in New Issue