mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 07:11:17 +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:
@ -203,7 +203,8 @@ module ImportScripts::PhpBB3::BBCode
|
|||||||
def quoted_post(xml_node)
|
def quoted_post(xml_node)
|
||||||
if @quoted_post_from_post_id
|
if @quoted_post_from_post_id
|
||||||
post_id = to_i(xml_node.attr("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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user