From 7a381f2533c5f5da9702c6968655d52a76cb47dc Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 21 Sep 2010 22:00:25 -0700 Subject: [PATCH] Support non-image file uploads in Yammer import --- plugins/YammerImport/yammerimporter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/YammerImport/yammerimporter.php b/plugins/YammerImport/yammerimporter.php index 6dc72f4766..bfe486770c 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']); } -- 2.39.5