wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r23158: LJSUP-13824: Site message for unlogged u...

Committer: wisest-owl
LJSUP-13824: Site message for unlogged users must be shown by JS

U   trunk/cgi-bin/LJ/JSON/RPC.pm
U   trunk/cgi-bin/LJ/SiteMessages.pm
U   trunk/cgi-bin/LJ/Widget/SiteMessages.pm
Modified: trunk/cgi-bin/LJ/JSON/RPC.pm
===================================================================
--- trunk/cgi-bin/LJ/JSON/RPC.pm	2012-10-17 06:06:39 UTC (rev 23157)
+++ trunk/cgi-bin/LJ/JSON/RPC.pm	2012-10-17 06:54:20 UTC (rev 23158)
@@ -113,6 +113,7 @@
     return LJ::Response::JSON->new( 
                 'data'          => $resp_data,
                 'callback'      => $self->{'callback'},
+                'javascript'    => ! !$self->{'callback'},
                 'http_headers'  => $headers, );
 
 }

Modified: trunk/cgi-bin/LJ/SiteMessages.pm
===================================================================
--- trunk/cgi-bin/LJ/SiteMessages.pm	2012-10-17 06:06:39 UTC (rev 23157)
+++ trunk/cgi-bin/LJ/SiteMessages.pm	2012-10-17 06:54:20 UTC (rev 23158)
@@ -143,7 +143,7 @@
     Anonymous   => {
                         value       => 8192,
                         group       => 0,
-                        validate    => sub { LJ::get_remote() ? 0 : 1 },
+                        validate    => sub { 1 },
                     },
 };
 

Modified: trunk/cgi-bin/LJ/Widget/SiteMessages.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/SiteMessages.pm	2012-10-17 06:06:39 UTC (rev 23157)
+++ trunk/cgi-bin/LJ/Widget/SiteMessages.pm	2012-10-17 06:54:20 UTC (rev 23158)
@@ -1,6 +1,8 @@
 package LJ::Widget::SiteMessages;
 
 use strict;
+use warnings;
+
 use base qw(LJ::Widget);
 use Carp qw(croak);
 use Class::Autouse qw( LJ::SiteMessages );
@@ -78,3 +80,4 @@
 }
 
 1;
+

Tags: livejournal, pm, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments