Skip to content

Commit

Permalink
FIX: phpBB3 importer created invalid quote for posts (#20646)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ftc2 committed Apr 5, 2023
1 parent df849e5 commit ad32fa5
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -203,7 +203,8 @@ def visit_QUOTE(xml_node, md_node)
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

Expand Down

0 comments on commit ad32fa5

Please sign in to comment.