]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add group link on Yammer import (won't work until memberships are fixed)
authorBrion Vibber <brion@pobox.com>
Wed, 22 Sep 2010 01:21:36 +0000 (18:21 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 28 Sep 2010 14:44:22 +0000 (07:44 -0700)
plugins/YammerImport/yammerimporter.php

index 583ed3a8c117bff0a7d53329cdd69185c3af9507..6dc72f47663fe036a06558b0e417473f2f6cbc9c 100644 (file)
@@ -289,6 +289,12 @@ class YammerImporter
             $groupId = $this->findImportedGroup($item['group_id']);
             if ($groupId) {
                 $options['groups'] = array($groupId);
+
+                // @fixme if we see a group link inline, don't add this?
+                $group = User_group::staticGet('id', $groupId);
+                if ($group) {
+                    $content .= ' !' . $group->nickname;
+                }
             }
         }