$blockIds = array_merge( [ $status['id'] ], $status['autoIds'] );
$logEntry->setRelations( [ 'ipb_id' => $blockIds ] );
$logId = $logEntry->insert();
+
+ if ( count( $data['Tags'] ) ) {
+ $logEntry->setTags( $data['Tags'] );
+ }
+
$logEntry->publish( $logId );
- # Report to the user
return true;
}