'username' => $this->database->hget('user:'.$message['fromuid'], 'username'),
'message' => self::convertMarkdown($message['content']),
'time' => intval($message['timestamp'] / 1000),
- 'attachments' => 0,
- 'enableSmilies' => 1,
- 'enableHtml' => 0,
- 'enableBBCodes' => 0,
- 'showSignature' => 0
+ 'attachments' => 0
]);
}
}
'message' => self::fixMessage($row['post_content']),
'time' => $time,
'comments' => $row['comment_count'],
- 'enableSmilies' => 0,
'enableHtml' => 1,
- 'enableBBCodes' => 0,
'isPublished' => ($row['post_status'] == 'publish' ? 1 : 0),
'isDeleted' => ($row['post_status'] == 'trash' ? 1 : 0)
], $additionalData);
'banReason' => '',
'registrationIpAddress' => $row['ip'] ? UserUtil::convertIPv4To6($row['ip']) : '',
'signature' => self::fixBBCodes($row['signature']),
- 'signatureEnableBBCodes' => 1,
- 'signatureEnableHtml' => 0,
- 'signatureEnableSmilies' => 1,
'lastActivityTime' => $row['last_activity']
];
$options = [
'editor' => $row['editor'] ?: '',
'lastEditTime' => $row['last_edit_date'],
'editCount' => $row['editor'] ? $row['edit_count'] : 0,
- 'enableSmilies' => 1,
- 'showSignature' => 1,
'ipAddress' => $row['ip'] ? UserUtil::convertIPv4To6($row['ip']) : ''
]);
}