mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-10 22:14:35 -04:00
Merge pull request #3069 from techAPJ/patch-3
FIX: deleted topics were failing user posts archive download
This commit is contained in:
commit
1b7450b5ae
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue