mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 16:54:42 +08:00
FIX: going to PM directly results in 500 error
regressed 1 day ago.
This commit is contained in:
@ -133,7 +133,7 @@ class TopicView
|
|||||||
|
|
||||||
def page_title
|
def page_title
|
||||||
title = @topic.title
|
title = @topic.title
|
||||||
unless @topic.category_id == SiteSetting.uncategorized_category_id
|
if @topic.category_id != SiteSetting.uncategorized_category_id && @topic.category_id && @topic.category
|
||||||
title += " - #{topic.category.name}"
|
title += " - #{topic.category.name}"
|
||||||
end
|
end
|
||||||
title
|
title
|
||||||
|
Reference in New Issue
Block a user