// but there is no real reason not to expose it in other cases,
// and I can see how this may be potentially useful for clients.
'id' => $attrib['rc_id'],
- 'type' => $attrib['rc_type'],
+ 'type' => RecentChange::parseFromRCType( $attrib['rc_type'] ),
'namespace' => $rc->getTitle()->getNamespace(),
'title' => $rc->getTitle()->getPrefixedText(),
'comment' => $attrib['rc_comment'],
break;
case RC_LOG:
+ $packet['log_id'] = $attrib['rc_logid'];
$packet['log_type'] = $attrib['rc_log_type'];
$packet['log_action'] = $attrib['rc_log_action'];
if ( $attrib['rc_params'] ) {