mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08: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 = []
|
user_archive_array = []
|
||||||
topic_data = user_archive.topic
|
topic_data = user_archive.topic
|
||||||
user_archive = user_archive.as_json
|
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
|
category = topic_data.category
|
||||||
sub_category = "-"
|
sub_category = "-"
|
||||||
if category
|
if category
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue