mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 04:59:22 -06:00
FIX: show category in subject not checking for category
This commit is contained in:
parent
c1a18f91ef
commit
739a6ff721
@ -241,7 +241,7 @@ class UserNotifications < ActionMailer::Base
|
||||
|
||||
# category name
|
||||
category = Topic.find_by(id: post.topic_id).category
|
||||
if opts[:show_category_in_subject] && post.topic_id && !category.uncategorized?
|
||||
if opts[:show_category_in_subject] && post.topic_id && category && !category.uncategorized?
|
||||
show_category_in_subject = category.name
|
||||
|
||||
# subcategory case
|
||||
|
Loading…
Reference in New Issue
Block a user