2heoh (2heoh) wrote in changelog,
2heoh
2heoh
changelog

[livejournal] r19731: LJSUP-9520: Subject of message should no...

Committer: slobin
LJSUP-9520: Subject of message should not be specified if message has no subject

M UserMessageRecvd.pm
U   trunk/cgi-bin/LJ/Event/UserMessageRecvd.pm
Modified: trunk/cgi-bin/LJ/Event/UserMessageRecvd.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/UserMessageRecvd.pm	2011-08-16 03:37:05 UTC (rev 19730)
+++ trunk/cgi-bin/LJ/Event/UserMessageRecvd.pm	2011-08-16 03:42:38 UTC (rev 19731)
@@ -82,6 +82,7 @@
     my $msg = LJ::Message->load({msgid => $self->arg1,
                                  journalid => $self->u->{userid},
                                  otherid => $self->arg2});
+
     return $msg;
 }
 
@@ -143,7 +144,13 @@
     my ($self, $u) = @_;
     my $lang = ($u && $u->prop('browselang')) || $LJ::DEFAULT_LANG;
 
-    my $subject = $self->load_message->subject;
+    
+    my $subject = '';
+
+    # make subject if if not empty
+    $subject = $self->load_message->subject
+        if $self->load_message->subject_raw;
+
     my $other_u = $self->load_message->other_u;
     my $body    = $self->load_message->body;
 

Tags: 2heoh, livejournal, pm
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