Merge pull request #3069 from techAPJ/patch-3
FIX: deleted topics were failing user posts archive download
This commit is contained in:
commit
1b7450b5ae
|
@ -132,6 +132,10 @@ module Jobs
|
|||
user_archive_array = []
|
||||
topic_data = user_archive.topic
|
||||
user_archive = user_archive.as_json
|
||||
if topic_data.nil?
|
||||
# deleted topic
|
||||
topic_data = Topic.with_deleted.find_by(id: user_archive['topic_id'])
|
||||
end
|
||||
category = topic_data.category
|
||||
sub_category = "-"
|
||||
if category
|
||||
|
|
Loading…
Reference in New Issue