diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-21 17:35:32 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-28 07:44:22 -0700 |
commit | 37c67c3f9ff7af942c3fa629724589e4de31f94e (patch) | |
tree | 5c7272d591987fb7d1894399ea20246b6a764a29 /plugins/YammerImport | |
parent | 7ffaf823486c05659379599752ae88a4c7d3339b (diff) |
Yammer import: mark group posts with the proper group inbox (should we append a !foo or leave them as is, as current?)
Diffstat (limited to 'plugins/YammerImport')
-rw-r--r-- | plugins/YammerImport/yammerimporter.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/YammerImport/yammerimporter.php b/plugins/YammerImport/yammerimporter.php index fb88fc506..bb6db7352 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? |