Add submitter email as well to the upload notification.

This commit is contained in:
Thomas Keller 2012-01-03 16:36:57 +01:00
parent 215294fcf3
commit 3bec47778a

View File

@ -244,6 +244,7 @@ class IDF_Upload extends Pluf_Model
$tags[] = $tag->class.':'.$tag->name;
}
$submitter = $this->get_submitter();
$payload = array(
'to_send' => array(
'project' => $project->shortname,
@ -253,7 +254,8 @@ class IDF_Upload extends Pluf_Model
'filename' => $this->file,
'filesize' => $this->filesize,
'md5sum' => $this->md5,
'submitter' => $this->get_submitter()->login,
'submitter_login' => $submitter->login,
'submitter_email' => $submitter->email,
'tags' => $tags,
),
'project_id' => $project->id,