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=b3210ee64c84c9e8224b0c1e40217bf920a9a0a1;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; + } } }