mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-26 06:41:22 -04:00
FIX: title missing from revisions dialog
This commit is contained in:
parent
7c14db44cc
commit
05890436df
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue