diff options
author | Brion Vibber <brion@pobox.com> | 2010-09-21 18:21:36 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-09-28 07:44:22 -0700 |
commit | b3210ee64c84c9e8224b0c1e40217bf920a9a0a1 (patch) | |
tree | 693818f5bf3a8f6eb335ce7f39c3db6d3d5b6e7b /plugins/YammerImport/yammerimporter.php | |
parent | 1685c8a4fa0c5e2eab514b5eea23ddc963255cbb (diff) |
Add group link on Yammer import (won't work until memberships are fixed)
Diffstat (limited to 'plugins/YammerImport/yammerimporter.php')
-rw-r--r-- | plugins/YammerImport/yammerimporter.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/YammerImport/yammerimporter.php b/plugins/YammerImport/yammerimporter.php index 583ed3a8c..6dc72f476 100644 --- a/plugins/YammerImport/yammerimporter.php +++ b/plugins/YammerImport/yammerimporter.php @@ -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; + } } } |