nfokz wrote in changelog

[livejournal] r20863: LJSUP-10893: LJ::Talk::Post: Can't call ...

Committer: anazarov
LJSUP-10893: LJ::Talk::Post: Can't call method "is_suspended" line 320
U   trunk/cgi-bin/LJ/Talk/Post.pm
Modified: trunk/cgi-bin/LJ/Talk/Post.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk/Post.pm	2011-12-26 11:13:47 UTC (rev 20862)
+++ trunk/cgi-bin/LJ/Talk/Post.pm	2011-12-26 12:22:39 UTC (rev 20863)
@@ -317,9 +317,9 @@
 
     # User is disabled and checks below are not needed
     # return with empty errret (this case is handled correctly by talkpost_do.bml)
-    if ( $up and $up->is_suspended || $up->is_deleted || $up->is_expunged ) {
+    if ( LJ::isu($up) and $up->is_suspended || $up->is_deleted || $up->is_expunged ) {
         @$errret = ('');
-    } 
+    }
 
     return if @$errret or LJ::Request->redirected;