]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Yammer import: mark group posts with the proper group inbox (should we append a ...
authorBrion Vibber <brion@pobox.com>
Wed, 22 Sep 2010 00:35:32 +0000 (17:35 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 28 Sep 2010 14:44:22 +0000 (07:44 -0700)
plugins/YammerImport/yammerimporter.php

index fb88fc506909a7617a987fdfd16636db068ed724..bb6db73528e4b77b24280a9a664e318c1c4fbf01 100644 (file)
@@ -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?