mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05: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
|
||||
|
||||
def title_changes
|
||||
|
||||
prev = "<div>#{previous["title"] && CGI::escapeHTML(previous["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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue