Skip to content

Commit 0946657

Browse files
achtonclaude
authored andcommitted
Set hasDiscussionBody flag on SMF1 source
SMF1's discussions() export joins smf_messages to embed the first post body in the Discussion record, and comments() excludes it (ID_MSG <> ID_FIRST_MSG). Without declaring hasDiscussionBody, the base Package default (false) causes Controller::setFlags() to skip OP extraction on both source and target. The result is that first posts are silently lost during migration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent df810c9 commit 0946657

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Source/Smf1.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
class Smf1 extends Source
1414
{
15+
protected const array FLAGS = [
16+
'hasDiscussionBody' => true, // SMF stores the OP body in the discussion export.
17+
];
18+
1519
public const SUPPORTED = [
1620
'name' => 'Simple Machines 1',
1721
'defaultTablePrefix' => 'smf_',

0 commit comments

Comments
 (0)