From 37c67c3f9ff7af942c3fa629724589e4de31f94e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 21 Sep 2010 17:35:32 -0700 Subject: [PATCH] Yammer import: mark group posts with the proper group inbox (should we append a !foo or leave them as is, as current?) --- plugins/YammerImport/yammerimporter.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/YammerImport/yammerimporter.php b/plugins/YammerImport/yammerimporter.php index fb88fc5069..bb6db73528 100644 --- a/plugins/YammerImport/yammerimporter.php +++ b/plugins/YammerImport/yammerimporter.php @@ -241,6 +241,13 @@ class YammerImporter } $options['created'] = $this->timestamp($item['created_at']); + if ($item['group_id']) { + $groupId = $this->findImportedGroup($item['group_id']); + if ($groupId) { + $options['groups'] = array($groupId); + } + } + $faves = array(); foreach ($item['liked_by']['names'] as $liker) { // "permalink" is the username. wtf?