Support non-image file uploads in Yammer import
This commit is contained in:
parent
0ed506ee93
commit
7a381f2533
|
@ -306,8 +306,8 @@ class YammerImporter
|
||||||
|
|
||||||
$attachments = array();
|
$attachments = array();
|
||||||
foreach ($item['attachments'] as $attach) {
|
foreach ($item['attachments'] as $attach) {
|
||||||
if ($attach['type'] == 'image') {
|
if ($attach['type'] == 'image' || $attach['type'] == 'file') {
|
||||||
$attachments[] = $attach['image']['url'];
|
$attachments[] = $attach[$attach['type']]['url'];
|
||||||
} else {
|
} else {
|
||||||
common_log(LOG_WARNING, "Unrecognized Yammer attachment type: " . $attach['type']);
|
common_log(LOG_WARNING, "Unrecognized Yammer attachment type: " . $attach['type']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user