From 3bec47778abf0db1fdd9bf7bc1a61286a27d7632 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Tue, 3 Jan 2012 16:36:57 +0100 Subject: [PATCH] Add submitter email as well to the upload notification. --- src/IDF/Upload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/IDF/Upload.php b/src/IDF/Upload.php index 2a09b3a..2fa7aec 100644 --- a/src/IDF/Upload.php +++ b/src/IDF/Upload.php @@ -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,