summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-09-21 17:35:32 -0700
committerBrion Vibber <brion@pobox.com>2010-09-21 17:35:32 -0700
commit9652e77376ae6b16496e93085a7b573e242e96e1 (patch)
tree7b3778c6e6984ee01932bf51101591a8c7ff42dd
parentdb5a4ce70df4528c0efc7eef71aec6d783f5423f (diff)
Yammer import: mark group posts with the proper group inbox (should we append a !foo or leave them as is, as current?)
-rw-r--r--plugins/YammerImport/yammerimporter.php7
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?