1 package LJ
::Event
::UserNewComment
;
3 use Scalar
::Util
qw(blessed);
4 use Class
::Autouse
qw(LJ::Comment);
9 my ($class, $comment) = @_;
10 croak
'Not an LJ::Comment' unless blessed
$comment && $comment->isa("LJ::Comment");
11 return $class->SUPER::new
($comment->poster,
12 $comment->journal->{userid
}, $comment->jtalkid);
17 # when was this comment left?
20 my $cmt = $self->comment;
21 return $cmt ?
$cmt->unixtime : $self->SUPER::eventtime_unix
;
26 return LJ
::Comment
->new($self->journal, jtalkid
=> $self->arg1);
29 sub available_for_user
{ 0 }
31 sub is_subscription_visible_to
{ 1 }