function onStartAvatarSaveForm($action) {
if ($action->arg('add')) {
$result = $this->gravatar_save();
+
+ if($result['success']===true) {
+ common_broadcast_profile(common_current_user()->getProfile());
+ }
+
$action->showForm($result['message'], $result['success']);
+
return false;
} else if ($action->arg('remove')) {
$result = $this->gravatar_remove();
+
+ if($result['success']===true) {
+ common_broadcast_profile(common_current_user()->getProfile());
+ }
+
$action->showForm($result['message'], $result['success']);
+
return false;
} else {
return true;
"&size=".$size;
return $url;
}
+
+ function onPluginVersion(&$versions)
+ {
+ $versions[] = array('name' => 'Gravatar',
+ 'version' => STATUSNET_VERSION,
+ 'author' => 'Eric Helgeson',
+ 'homepage' => 'http://status.net/wiki/Plugin:Gravatar',
+ 'rawdescription' =>
+ _m('The Gravatar plugin allows users to use their <a href="http://www.gravatar.com/">Gravatar</a> with StatusNet.'));
+
+ return true;
+ }
}