Test Plan: Moved image, verified that the source file is marked as image: https://secure.phabricator.com/differential/diff/6924/
Reviewers: epriestley, btrahan
Reviewed By: btrahan
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3520
$change->setMetadata('new:file:size', $new_dict['size']);
$change->setMetadata('new:file:mime-type', $new_dict['mime']);
- if (preg_match('@^image/@', $new_dict['mime'])) {
+ $mime_type = coalesce($new_dict['mime'], $old_dict['mime']);
+ if (preg_match('@^image/@', $mime_type)) {
$change->setFileType(ArcanistDiffChangeType::FILE_IMAGE);
}
}