mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: title missing from revisions dialog
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user