We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 6bc3f5aa authored by Brion Vibber's avatar Brion Vibber

Support non-image file uploads in Yammer import

parent b3210ee6
......@@ -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']);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment