diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-21 17:35:32 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-21 17:35:32 -0700 |
commit | 9652e77376ae6b16496e93085a7b573e242e96e1 (patch) | |
tree | 7b3778c6e6984ee01932bf51101591a8c7ff42dd /plugins | |
parent | db5a4ce70df4528c0efc7eef71aec6d783f5423f (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')
-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? |