[ljcom] r3608: we care if the remote user is paid, not ...

Oct 05, 2006 22:49


Committer: mischawe care if the remote user is paid, not the user we're looking at!

U trunk/cgi-bin/ljcom.pl

Modified: trunk/cgi-bin/ljcom.pl
===================================================================
--- trunk/cgi-bin/ljcom.pl 2006-10-05 22:25:38 UTC (rev 3607)
+++ trunk/cgi-bin/ljcom.pl 2006-10-05 22:49:34 UTC (rev 3608)
@@ -3413,13 +3413,15 @@

LJ::register_hook('ctxpopup_extra_info', sub {
my $u = shift;
+ my $remote = LJ::get_remote() or return ();
+
return () unless $u;
return (
is_online => $u->jabber_is_online,
jabber_title => LJ::run_hook('jabber_title'),
jabber_link => LJ::run_hook('jabber_link'),
jabber_download_title => LJ::run_hook('jabber_download_title'),
- jabber_show_download => ! $u->in_class('paid'),
+ jabber_show_download => ! $remote->in_class('paid'),
);
});

Previous post Next post
Up