Yammer import: mark group posts with the proper group inbox (should we append a !foo or leave them as is, as current?)

This commit is contained in:
Brion Vibber 2010-09-21 17:35:32 -07:00
parent 7ffaf82348
commit 37c67c3f9f
1 changed files with 7 additions and 0 deletions

View File

@ -241,6 +241,13 @@ class YammerImporter
}
$options['created'] = $this->timestamp($item['created_at']);
if ($item['group_id']) {
$groupId = $this->findImportedGroup($item['group_id']);
if ($groupId) {
$options['groups'] = array($groupId);
}
}
$faves = array();
foreach ($item['liked_by']['names'] as $liker) {
// "permalink" is the username. wtf?