From: Brion Vibber Date: Wed, 22 Sep 2010 01:21:36 +0000 (-0700) Subject: Add group link on Yammer import (won't work until memberships are fixed) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ed506ee9384f95bd01cdcd72a253d08ae89b92e;p=quix0rs-gnu-social.git Add group link on Yammer import (won't work until memberships are fixed) --- 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; + } } }