mirror of
https://github.com/discourse/discourse.git
synced 2026-08-18 00:44:59 -05:00
FIX: title missing from revisions dialog
This commit is contained in:
@@ -112,11 +112,11 @@ class PostRevisionSerializer < ApplicationSerializer
|
|||||||
end
|
end
|
||||||
|
|
||||||
def title_changes
|
def title_changes
|
||||||
|
|
||||||
prev = "<div>#{previous["title"] && CGI::escapeHTML(previous["title"])}</div>"
|
prev = "<div>#{previous["title"] && CGI::escapeHTML(previous["title"])}</div>"
|
||||||
cur = "<div>#{current["title"] && CGI::escapeHTML(current["title"])}</div>"
|
cur = "<div>#{current["title"] && CGI::escapeHTML(current["title"])}</div>"
|
||||||
|
|
||||||
return if prev == cur
|
# always show the title for post_number == 1
|
||||||
|
return if object.post.post_number > 1 && prev == cur
|
||||||
|
|
||||||
diff = DiscourseDiff.new(prev, cur)
|
diff = DiscourseDiff.new(prev, cur)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user