Let me try...How do you reproduce this, exactly? We don't display quotes from members you ignore.
Index: src/addons/XFI/Import/Importer/vBulletin.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- src/addons/XFI/Import/Importer/vBulletin.php (date 1535417219000)
+++ src/addons/XFI/Import/Importer/vBulletin.php (date 1535417836000)
@@ -3306,10 +3306,24 @@
$quoteEqualsPatterns = [
'/\[QUOTE=((?P<quoted>\'|")?)(?P<username>(?(quoted)[^;\n]+|[^\][;\n]+))(;\s*(?P<postid>\d+))\1\]/siU' => function ($match)
{
- return sprintf('[QUOTE="%s, post: %d"]',
- $match['username'],
- $this->lookupId('post', $match['postid'])
- );
+ $newPostId = $this->lookupId('post', $match['postid']);
+ $post = $this->em()->find('XF:Post', $newPostId);
+
+ if ($post && $post->user_id)
+ {
+ return sprintf('[QUOTE="%s, post: %d, member: %d"]',
+ $match['username'],
+ $newPostId,
+ $post->user_id
+ );
+ }
+ else
+ {
+ return sprintf('[QUOTE="%s, post: %d"]',
+ $match['username'],
+ $newPostId
+ );
+ }
}
];
We use essential cookies to make this site work, and optional cookies to enhance your experience.