mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 02:35:51 +08:00
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…
x
Reference in New Issue
Block a user