Index: pingfm.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/pingfm/Attic/pingfm.module,v retrieving revision 1.1.2.8 diff -u -r1.1.2.8 pingfm.module --- pingfm.module 27 Mar 2009 19:49:10 -0000 1.1.2.8 +++ pingfm.module 24 May 2009 15:10:36 -0000 @@ -142,13 +142,14 @@ case 'insert': case 'update': if (!empty($node->status) && !empty($node->pingfm) && !empty($node->pingfm['post'])) { + global $user; $replacements = array( '!title' => $node->title, '!teaser' => strip_tags($node->teaser), '!url' => url('node/'. $node->nid, array('absolute' => TRUE)), '!user' => $node->name, ); - $result = pingfm_post(t($node->pingfm['format'], $replacements), $node->pingfm['method'], $node->title, user_load(array('uid' => $node->uid))); + $result = pingfm_post(t($node->pingfm['format'], $replacements), $node->pingfm['method'], $node->title, $user); drupal_set_message($result ? t('Successfully posted to Ping.fm') : t('Failed posting to Ping.fm'), $result ? 'status' : 'warning'); } break;