From 6bc3f5aacbdefcd2bb2d46998bc439903ffa3a1d Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 21 Sep 2010 22:00:25 -0700 Subject: Support non-image file uploads in Yammer import --- plugins/YammerImport/yammerimporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/YammerImport') diff --git a/plugins/YammerImport/yammerimporter.php b/plugins/YammerImport/yammerimporter.php index 6dc72f476..bfe486770 100644 --- a/plugins/YammerImport/yammerimporter.php +++ b/plugins/YammerImport/yammerimporter.php @@ -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']); } -- cgit v1.2.3-54-g00ecf