mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:15:05 +08:00
FIX: phpBB3 importer created invalid quote for posts (#20646)
for proper quotes (those including a valid reference to a source post), the importer failed to yield a username, and the imported quote was broken.
This commit is contained in:
parent
df849e51b7
commit
ad32fa5690
|
@ -203,7 +203,8 @@ module ImportScripts::PhpBB3::BBCode
|
|||
def quoted_post(xml_node)
|
||||
if @quoted_post_from_post_id
|
||||
post_id = to_i(xml_node.attr("post_id"))
|
||||
@quoted_post_from_post_id.call(post_id) if post_id
|
||||
username = quoted_username(xml_node)
|
||||
@quoted_post_from_post_id.call(post_id).merge({ username: username }) if post_id && username
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user