mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: user archive export was failing in some cases
This commit is contained in:
parent
0b62730382
commit
750a275dcb
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ module Jobs
|
|||
# deleted topic
|
||||
topic_data = Topic.with_deleted.find_by(id: user_archive['topic_id'])
|
||||
end
|
||||
category = topic_data.category
|
||||
category = topic_data.category if topic_data
|
||||
sub_category = "-"
|
||||
if category
|
||||
category_name = category.name
|
||||
|
|
Loading…
Reference in a new issue