From 0ed506ee9384f95bd01cdcd72a253d08ae89b92e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 21 Sep 2010 18:21:36 -0700 Subject: [PATCH] Add group link on Yammer import (won't work until memberships are fixed) --- plugins/YammerImport/yammerimporter.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/YammerImport/yammerimporter.php b/plugins/YammerImport/yammerimporter.php index 583ed3a8c1..6dc72f4766 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; + } } } -- 2.39.5