mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
fix vbulletin importer to hide soft-deleted posts (#12057)
equal to theads posts can be soft-deleted which results in a visibile = 2 state. at the moment those posts will be imported fully visible.
This commit is contained in:
parent
a3c363c8f0
commit
144584aacb
3 changed files with 3 additions and 3 deletions
|
@ -327,7 +327,7 @@ class ImportScripts::VBulletin < ImportScripts::Base
|
|||
topic_id: topic[:topic_id],
|
||||
raw: raw,
|
||||
created_at: parse_timestamp(post["dateline"]),
|
||||
hidden: post["visible"].to_i == 0,
|
||||
hidden: post["visible"].to_i != 1,
|
||||
}
|
||||
if parent = topic_lookup_from_imported_post_id(post["parentid"])
|
||||
p[:reply_to_post_number] = parent[:post_number]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue