Support non-image file uploads in Yammer import

This commit is contained in:
Brion Vibber 2010-09-21 22:00:25 -07:00
parent b3210ee64c
commit 6bc3f5aacb
1 changed files with 2 additions and 2 deletions

View File

@ -306,8 +306,8 @@ class YammerImporter
$attachments = array();
foreach ($item['attachments'] as $attach) {
if ($attach['type'] == 'image') {
$attachments[] = $attach['image']['url'];
if ($attach['type'] == 'image' || $attach['type'] == 'file') {
$attachments[] = $attach[$attach['type']]['url'];
} else {
common_log(LOG_WARNING, "Unrecognized Yammer attachment type: " . $attach['type']);
}