From 9652e77376ae6b16496e93085a7b573e242e96e1 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? -- 2.39.5