summaryrefslogtreecommitdiff
path: root/plugins/YammerImport
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YammerImport')
-rw-r--r--plugins/YammerImport/yammerimporter.php4
1 files changed, 2 insertions, 2 deletions
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']);
}