[Jifty-commit] r801 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Sun Apr 2 11:27:56 EDT 2006


Author: jesse
Date: Sun Apr  2 11:27:55 2006
New Revision: 801

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Notification.pm

Log:
 r11033 at hualien:  jesse | 2006-04-03 00:26:43 +0900
 * Notifications can now take a user object or an email address


Modified: jifty/trunk/lib/Jifty/Notification.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Notification.pm	(original)
+++ jifty/trunk/lib/Jifty/Notification.pm	Sun Apr  2 11:27:55 2006
@@ -187,7 +187,11 @@
     my $self = shift;
 
     if ($self->to) {
-        $self->recipients($self->to->email);
+        if ($self->to->can('email')) {
+            $self->recipients($self->to->email);
+        } else {
+            $self->recipients($self->to);
+        }
         $self->send_one_message(@_);
     }
     for my $to ($self->to_list) {


More information about the Jifty-commit mailing list